]> git.lyx.org Git - features.git/commitdiff
fix MSVC warnings
authorAbdelrazak Younes <younes@lyx.org>
Tue, 21 Aug 2007 07:17:49 +0000 (07:17 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 21 Aug 2007 07:17:49 +0000 (07:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19685 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QCitationDialog.cpp

index 6a2c3c208fe215906e19a132ea9ece843cab0344..aebb8d71433be5a7804eb91a4c67c82f581e8d79 100644 (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];