mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
e5cf6e8566
commit
d19e684383
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user