X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6465c961b203aeea952a0e8e43293f2a08fe19d..9b69526274b023fa1460b29a92bea8bf82e4703f:/src/common/fontmap.cpp?ds=sidebyside diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index f40ea75e95..6ab97b4c2f 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -479,7 +479,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset, cs.Trim(FALSE); // discard the optional quotes - if ( !!cs ) + if ( !cs.empty() ) { if ( cs[0u] == _T('"') && cs.Last() == _T('"') ) { @@ -489,7 +489,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset, cs.MakeUpper(); - if ( !cs || cs == wxT("US-ASCII") ) + if ( cs.empty() || cs == _T("US-ASCII") ) { encoding = wxFONTENCODING_DEFAULT; }