From 7206f238726503c076cb0a8cb9e8620820388d1c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 21 Aug 2007 07:17:49 +0000 Subject: [PATCH] fix MSVC warnings git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19685 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QCitationDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/QCitationDialog.cpp b/src/frontends/qt4/QCitationDialog.cpp index 6a2c3c208f..aebb8d7143 100644 --- a/src/frontends/qt4/QCitationDialog.cpp +++ b/src/frontends/qt4/QCitationDialog.cpp @@ -520,7 +520,7 @@ void QCitationDialog::findText(QString const & text, bool reset) vector 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 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]; -- 2.39.5