A little const'ness.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27167 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-10-28 16:02:33 +00:00
parent c7b7331315
commit 4fb3e609d0

View 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;