]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a warning with signed vs unsigned comparison.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 12 Jan 2011 01:24:40 +0000 (01:24 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 12 Jan 2011 01:24:40 +0000 (01:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@23177 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/parameter_gui/parameter_delegate.cpp

index f0754f4402c153b0baec182e9ee0172c2aad77dc..da28c2aa94a9985342c5cbc712baf7bf5e341241 100644 (file)
@@ -246,7 +246,7 @@ void ParameterDelegate::setEditorData(QWidget *editor, const QModelIndex &index)
 
           QComboBox * combo_box = qobject_cast<QComboBox *>(editor);
 
-          for (unsigned int i=0; i<combo_box->count(); ++i)            // we look, which index
+          for (int i=0; i<combo_box->count(); ++i)             // we look, which index
             if (rx.exactMatch(combo_box->itemText(i)))                 // the data has and set
               combo_box->setCurrentIndex(i);                           // it to the combo_box
         }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.