]> git.lyx.org Git - features.git/commitdiff
fix the fix
authorAndré Pönitz <poenitz@gmx.net>
Wed, 21 Aug 2002 06:39:45 +0000 (06:39 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 21 Aug 2002 06:39:45 +0000 (06:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5049 a592a061-630c-0410-9148-cb99ea01b6c8

src/MenuBackend.C

index faa09a8a523556932df2178f4544281d553b22d2..53622920e714efa31ea663c10f5fa5962c1b6120 100644 (file)
@@ -82,7 +82,7 @@ MenuItem::MenuItem(Kind kind, string const & label,
 
 
 MenuItem::MenuItem(Kind kind, string const & label, int action,
-                bool optional = false);
+                bool optional = false)
        : kind_(kind), label_(label), action_(action), submenuname_(),
          optional_(optional)
 {}
@@ -92,6 +92,12 @@ MenuItem::~MenuItem()
 {}
 
 
+void MenuItem::submenu(Menu * menu)
+{
+       submenu_.reset(menu);
+}
+
+
 string const MenuItem::label() const
 {
        return token(label_, '|', 0);
@@ -111,12 +117,6 @@ Menu & Menu::add(MenuItem const & i)
 }
 
 
-void Menu::submenu(Menu * menu)
-{
-       submenu_.reset(menu);
-}
-
-
 Menu & Menu::read(LyXLex & lex)
 {
        enum Menutags {