Use wxSwap() function to swap values.

This commit is contained in:
Artur Wieczorek
2015-12-09 21:05:28 +01:00
parent d8ff3189e2
commit 757117ab2a

View File

@@ -469,9 +469,7 @@ wxSize wxToolBar::DoGetBestSize() const
// reverse horz and vertical components if necessary // reverse horz and vertical components if necessary
if ( IsVertical() ) if ( IsVertical() )
{ {
int t = sizeBest.x; wxSwap(sizeBest.x, sizeBest.y);
sizeBest.x = sizeBest.y;
sizeBest.y = t;
} }
} }
else // TB_GETMAXSIZE succeeded else // TB_GETMAXSIZE succeeded