First part of '[ 1216148 ] cleanup: unused variables and declarations'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user