]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
corrected signed/unsigned comparison warnings
[wxWidgets.git] / src / common / string.cpp
index 0a70d793a89f21d1b72ddfb95e5ec7b686dd2ce7..99bb5a55a3514be94355fb29391f001ebd5c13db 100644 (file)
@@ -1618,7 +1618,7 @@ wxString& wxString::Trim(bool bFromRight)
         {
             // find last non-space character
             reverse_iterator psz = rbegin();
-            while ( wxSafeIsspace(*psz) && (psz != rend()) )
+            while ( (psz != rend()) && wxSafeIsspace(*psz) )
                 psz++;
             
             // truncate at trailing space start
@@ -1628,7 +1628,7 @@ wxString& wxString::Trim(bool bFromRight)
         {
             // find first non-space character
             iterator psz = begin();
-            while ( wxSafeIsspace(*psz) && (psz != end()) )
+            while ( (psz != end()) && wxSafeIsspace(*psz) )
                 psz++;
 
             // fix up data and length