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:
Abdelrazak Younes 2007-08-21 07:17:49 +00:00
parent c4c945bc1e
commit 7206f23872

View File

@ -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];