Get rid of unnecessary temporary variable in wxMSW wxToolBar

No real changes, just remove a variable only used once.
This commit is contained in:
Vadim Zeitlin
2019-02-23 18:38:52 +01:00
parent 0659006dc6
commit 44eb96b993

View File

@@ -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