X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a12cc65c8a0d576654b2c24c60503564ae07712..5f7348ce627157e21bec507623ebd31c1e9dc762:/src/common/fontmap.cpp diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index be05e44b85..0febe2880f 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -330,7 +330,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, wxString configEntry, encName = GetEncodingName(encoding); - if ( !facename.IsEmpty() ) + if ( !facename.empty() ) { configEntry = facename + _T("_"); } @@ -354,13 +354,13 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, } else // use the info entered the last time { - if ( !fontinfo.IsEmpty() && !facename.IsEmpty() ) + if ( !fontinfo.empty() && !facename.empty() ) { // we tried to find a match with facename -- now try without it fontinfo = GetConfig()->Read(encName); } - if ( !fontinfo.IsEmpty() ) + if ( !fontinfo.empty() ) { if ( info->FromString(fontinfo) ) { @@ -443,7 +443,6 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, if ( dialog.ShowModal() == wxID_OK ) { wxFontData retData = dialog.GetFontData(); - wxFont font = retData.GetChosenFont(); *info = retData.EncodingInfo(); info->encoding = retData.GetEncoding();