Get rid of unnecessary temporary variable in wxMSW wxToolBar
No real changes, just remove a variable only used once.
This commit is contained in:
@@ -1854,8 +1854,7 @@ void wxToolBar::OnEraseBackground(wxEraseEvent& event)
|
||||
bool wxToolBar::HandleSize(WXWPARAM WXUNUSED(wParam), WXLPARAM lParam)
|
||||
{
|
||||
// wait until we have some tools
|
||||
const int toolsCount = GetToolsCount();
|
||||
if ( toolsCount == 0 )
|
||||
if ( !GetToolsCount() )
|
||||
return false;
|
||||
|
||||
// calculate our minor dimension ourselves - we're confusing the standard
|
||||
|
Reference in New Issue
Block a user