X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f31a409829d5d410f38e64896470afcaff12635b..046d682f0f684977b7ba933a128f5c84e06ded0e:/src/msw/choice.cpp diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index ae626177ce..a243f36fb0 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -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; }