Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxDefaultCoord, TRUE/true, FALSE/false, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -316,7 +316,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
|
||||
|
||||
wxString configEntry,
|
||||
encName = GetEncodingName(encoding);
|
||||
if ( !!facename )
|
||||
if ( !facename.IsEmpty() )
|
||||
{
|
||||
configEntry = facename + _T("_");
|
||||
}
|
||||
@@ -340,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) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user