]> git.saurik.com Git - wxWidgets.git/commitdiff
Use empty check consistent with other parts.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 11 Mar 2005 07:35:51 +0000 (07:35 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 11 Mar 2005 07:35:51 +0000 (07:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/choice.cpp

index ae626177ced4d4f469f216f15c955e079e4b8acb..a243f36fb04384bba928cc9b6ff2296bf4cb23f3 100644 (file)
@@ -335,12 +335,12 @@ int wxChoice::FindString(const wxString& s) const
 #else // !Watcom
    //TODO:  Evidently some MSW versions (all?) don't like empty strings
    //passed to SendMessage, so we have to do it ourselves in that case
-   if ( s.size() == 0 )
+   if ( s.empty() )
    {
      int count = GetCount();
      for ( int i = 0; i < count; i++ )
      {
-       if ( GetString(i).size() == 0 )
+       if ( GetString(i).empty() )
            return i;
      }