X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a3b6b0782c12b4e0e529eb4d84ccd441b5dd062..cf6bedce0ee2453abe58437cdea45b8ff16f4d01:/src/common/fontmap.cpp diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index aba7f876e4..a30c4f14bb 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -262,6 +262,8 @@ bool wxFontMapper::TestAltEncoding(const wxString& configEntry, { GetConfig()->Write(configEntry, info->ToString()); } +#else + wxUnusedVar(configEntry); #endif // wxUSE_CONFIG return true; } @@ -314,7 +316,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, wxString configEntry, encName = GetEncodingName(encoding); - if ( !!facename ) + if ( !facename.IsEmpty() ) { configEntry = facename + _T("_"); } @@ -338,13 +340,13 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, } else // use the info entered the last time { - if ( !!fontinfo && !!facename ) + if ( !fontinfo.IsEmpty() && !facename.IsEmpty() ) { // we tried to find a match with facename -- now try without it fontinfo = GetConfig()->Read(encName); } - if ( !!fontinfo ) + if ( !fontinfo.IsEmpty() ) { if ( info->FromString(fontinfo) ) {