]> git.lyx.org Git - lyx.git/commitdiff
fix gcc warnings
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 4 Nov 2006 09:47:14 +0000 (09:47 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 4 Nov 2006 09:47:14 +0000 (09:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15727 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.C
src/session.h

index fd9f1f44f4fd3102d12ca85b460a7a55380f8928..a74dc452ba5e1980e13e8f5c6230658a255ca8d2 100644 (file)
@@ -473,7 +473,7 @@ void GuiView::busy(bool yes)
 Toolbars::ToolbarPtr GuiView::makeToolbar(ToolbarBackend::Toolbar const & tbb)
 {
        QLToolbar * Tb = new QLToolbar(tbb, *this);
 Toolbars::ToolbarPtr GuiView::makeToolbar(ToolbarBackend::Toolbar const & tbb)
 {
        QLToolbar * Tb = new QLToolbar(tbb, *this);
-       static QLToolbar * lastTb = 0;
+       //static QLToolbar * lastTb = 0;
 
        if (tbb.flags & ToolbarBackend::TOP) {
                        addToolBar(Qt::TopToolBarArea, Tb);
 
        if (tbb.flags & ToolbarBackend::TOP) {
                        addToolBar(Qt::TopToolBarArea, Tb);
index f682e1e450c194904aa00d69c5d5538d7ecc9a1b..aa8d63a7951f2f4ab3d8b830e34c2266a000d26e 100644 (file)
@@ -195,7 +195,7 @@ public:
 public:
        /// constructor, set max_bookmarks
        /// allow 20 regular bookmarks
 public:
        /// constructor, set max_bookmarks
        /// allow 20 regular bookmarks
-       BookmarksSection() : max_bookmarks(20), bookmarks(0) {}
+       BookmarksSection() : bookmarks(0), max_bookmarks(20) {}
 
        /// Save the current position as bookmark
        /// if save==false, save to temp_bookmark
 
        /// Save the current position as bookmark
        /// if save==false, save to temp_bookmark