]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress a harmless signed/unsigned comparison warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Apr 2010 18:46:05 +0000 (18:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Apr 2010 18:46:05 +0000 (18:46 +0000)
wxComboBox::FindString() used int loop index, change it to unsigned one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/combobox_osx.cpp

index f13da377009da1f4432a45a8897f345e647fde8d..22ae6a9256fb2153a9f8c22da8ce90d14d306715 100644 (file)
@@ -172,7 +172,7 @@ int wxComboBox::FindString(const wxString& s, bool bCase) const
 {
     if (!bCase)
     {
-        for (int i = 0; i < GetCount(); i++)
+        for (unsigned i = 0; i < GetCount(); i++)
         {
             if (s.IsSameAs(GetString(i), false))
                 return i;