mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix MSVC warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19685 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c4c945bc1e
commit
7206f23872
@ -520,7 +520,7 @@ void QCitationDialog::findText(QString const & text, bool reset)
|
||||
vector<docstring> const & fields = form_->availableFields();
|
||||
docstring field;
|
||||
|
||||
if (index <= -1 || index >= fields.size())
|
||||
if (index <= -1 || index >= int(fields.size()))
|
||||
//either "All Fields" or "Keys" or an invalid value
|
||||
field = from_ascii("");
|
||||
else
|
||||
@ -533,7 +533,7 @@ void QCitationDialog::findText(QString const & text, bool reset)
|
||||
index = entriesCO->currentIndex() - 1;
|
||||
vector<docstring> const & entries = form_->availableEntries();
|
||||
docstring entryType;
|
||||
if (index < 0 || index >= entries.size())
|
||||
if (index < 0 || index >= int(entries.size()))
|
||||
entryType = from_ascii("");
|
||||
else
|
||||
entryType = entries[index];
|
||||
|
Loading…
Reference in New Issue
Block a user