From: Richard Heck Date: Fri, 13 May 2011 22:26:35 +0000 (+0000) Subject: Minor fixups thanks to Vincent. X-Git-Tag: 2.1.0beta1~3252 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=605d3121f84fa0e2f7d8fcaf93806c708a47df3a;p=features.git Minor fixups thanks to Vincent. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38744 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 050c8d27a2..98b5bf88dc 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -2141,20 +2141,20 @@ void GuiDocument::updateDefaultFormat() if (!bufferview()) return; // make a copy in order to consider unapplied changes - BufferParams tmp = buffer().params(); - tmp.useNonTeXFonts = fontModule->osFontsCB->isChecked(); - int idx = latexModule->classCO->currentIndex(); + BufferParams param_copy = buffer().params(); + param_copy.useNonTeXFonts = fontModule->osFontsCB->isChecked(); + int const idx = latexModule->classCO->currentIndex(); if (idx >= 0) { string const classname = classes_model_.getIDString(idx); - tmp.setBaseClass(classname); - tmp.makeDocumentClass(); + param_copy.setBaseClass(classname); + param_copy.makeDocumentClass(); } outputModule->defaultFormatCO->blockSignals(true); outputModule->defaultFormatCO->clear(); outputModule->defaultFormatCO->addItem(qt_("Default"), QVariant(QString("default"))); typedef vector Formats; - Formats formats = tmp.exportableFormats(true); + Formats formats = param_copy.exportableFormats(true); Formats::const_iterator cit = formats.begin(); Formats::const_iterator end = formats.end(); for (; cit != end; ++cit)