Fix wxPen and wxBrush style deprecation warnings in utils

Fix a warning about hidden local variable in the helpview util.
This commit is contained in:
Maarten Bent
2017-11-25 17:32:17 +01:00
parent 2156d29801
commit dc6858d905
3 changed files with 16 additions and 16 deletions

View File

@@ -119,15 +119,15 @@ bool hvApp::OnInit()
}
else if ( argStr.Find( wxT("--Style") ) >= 0 )
{
long i;
long style;
wxString numb = argStr.AfterLast(wxT('e'));
if ( !(numb.ToLong(&i) ) )
if ( !(numb.ToLong(&style) ) )
{
wxLogError( wxT("Integer conversion failed for --Style") );
}
else
{
istyle = i;
istyle = style;
}
}
else