]> git.lyx.org Git - features.git/commitdiff
A little const'ness.
authorRichard Heck <rgheck@comcast.net>
Tue, 28 Oct 2008 16:02:33 +0000 (16:02 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 28 Oct 2008 16:02:33 +0000 (16:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27167 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiRef.cpp

index 1c5210dae6b6265a76984c9bb20475d27b911abc..4c0ef3e503f2a2d8052849a2eb259b3be467991f 100644 (file)
@@ -231,13 +231,13 @@ void GuiRef::updateContents()
                bufferCO->addItem(toqstr(makeDisplayPath(it->absFilename())));
        }
 
-       int thebuffer = theBufferList().bufferNum(buffer().fileName());
+       int const thebuffer = theBufferList().bufferNum(buffer().fileName());
        // restore the buffer combo setting for new insets
        if (params_["reference"].empty() && restored_buffer_ != -1
            && restored_buffer_ < bufferCO->count() && thebuffer == active_buffer_)
                bufferCO->setCurrentIndex(restored_buffer_);
        else {
-               int num = theBufferList().bufferNum(buffer().fileName());
+               int const num = theBufferList().bufferNum(buffer().fileName());
                bufferCO->setCurrentIndex(num);
                if (thebuffer != active_buffer_)
                        restored_buffer_ = num;