]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.C
don't copy if a reference is fine
[lyx.git] / src / MenuBackend.C
index 2525758134db97639d67da6bc4a9f52f2462dfe9..de6b67c0a181569acd798a36a52a345f21266430 100644 (file)
@@ -22,6 +22,7 @@
 #include "debug.h"
 #include "gettext.h"
 #include "lastfiles.h"
+#include "lyx_main.h" // for lastfiles
 #include "bufferlist.h"
 #include "converter.h"
 #include "exporter.h"
@@ -33,7 +34,6 @@
 #include "support/lstrings.h"
 
 extern LyXAction lyxaction;
-extern LastFiles * lastfiles; 
 extern BufferList bufferlist;
 
 using std::endl;
@@ -79,11 +79,13 @@ MenuItem::MenuItem(Kind kind, string const & label,
        }
 }
 
+
 string const MenuItem::label() const 
 { 
        return token(label_, '|', 0); 
 }
 
+
 string const MenuItem::shortcut() const
 { 
        return token(label_, '|', 1); 
@@ -246,6 +248,7 @@ void Menu::checkShortcuts() const
        }
 }
 
+
 namespace {
 
 class compare_format {