msvc fixes: remove warnings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20160 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2007-09-08 21:00:49 +00:00
parent e5cf6e8566
commit d19e684383
2 changed files with 3 additions and 5 deletions

View File

@ -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);
}

View File

@ -50,8 +50,6 @@ void GuiEmbeddedFilesDialog::on_filesLW_itemChanged(QListWidgetItem* item)
void GuiEmbeddedFilesDialog::on_filesLW_itemSelectionChanged()
{
EmbeddedFiles & files = controller_.embeddedFiles();
QList<QListWidgetItem *> selection = filesLW->selectedItems();
if (selection.empty()) {