X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4d02bd56540d1f552b93a300f8df5307130c3b1..155ecd4c4221d3bbc7aa93d472d11948f21d21ab:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 0a70d793a8..99bb5a55a3 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -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