diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 305dc6cf7e..3382cfe712 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -830,14 +830,14 @@ void GuiDocumentDialog::updatePagestyle(string const & items, string const & sel return; } - int n = 0; + int nn = 0; for (size_t i = 0; i < pagestyles.size(); ++i) if (pagestyles[i].first == sel) - n = pageLayoutModule->pagestyleCO->findText( + nn = pageLayoutModule->pagestyleCO->findText( toqstr(pagestyles[i].second)); - if (n > 0) + if (nn > 0) pageLayoutModule->pagestyleCO->setCurrentIndex(n); } diff --git a/src/frontends/qt4/GuiEmbeddedFiles.cpp b/src/frontends/qt4/GuiEmbeddedFiles.cpp index 4628dcf2b6..39fe5d83a6 100644 --- a/src/frontends/qt4/GuiEmbeddedFiles.cpp +++ b/src/frontends/qt4/GuiEmbeddedFiles.cpp @@ -50,8 +50,6 @@ void GuiEmbeddedFilesDialog::on_filesLW_itemChanged(QListWidgetItem* item) void GuiEmbeddedFilesDialog::on_filesLW_itemSelectionChanged() { - EmbeddedFiles & files = controller_.embeddedFiles(); - QList selection = filesLW->selectedItems(); if (selection.empty()) {