From 757117ab2aa6b587ea8b4c761b9a77342cf3f740 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 9 Dec 2015 21:05:28 +0100 Subject: [PATCH] Use wxSwap() function to swap values. --- src/msw/toolbar.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index ebdd261a82..3cfee08579 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -469,9 +469,7 @@ wxSize wxToolBar::DoGetBestSize() const // reverse horz and vertical components if necessary if ( IsVertical() ) { - int t = sizeBest.x; - sizeBest.x = sizeBest.y; - sizeBest.y = t; + wxSwap(sizeBest.x, sizeBest.y); } } else // TB_GETMAXSIZE succeeded