From 44eb96b993354a9b17b0085e96956e5d2370c736 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 23 Feb 2019 18:38:52 +0100 Subject: [PATCH] Get rid of unnecessary temporary variable in wxMSW wxToolBar No real changes, just remove a variable only used once. --- src/msw/toolbar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index 2c4ae26eb1..8e8a2ea4b9 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -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