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)
|
bool wxToolBar::HandleSize(WXWPARAM WXUNUSED(wParam), WXLPARAM lParam)
|
||||||
{
|
{
|
||||||
// wait until we have some tools
|
// wait until we have some tools
|
||||||
const int toolsCount = GetToolsCount();
|
if ( !GetToolsCount() )
|
||||||
if ( toolsCount == 0 )
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// calculate our minor dimension ourselves - we're confusing the standard
|
// calculate our minor dimension ourselves - we're confusing the standard
|
||||||
|
Reference in New Issue
Block a user