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
if ( IsVertical() )
{
int t = sizeBest.x;
sizeBest.x = sizeBest.y;
sizeBest.y = t;
wxSwap(sizeBest.x, sizeBest.y);
}
}
else // TB_GETMAXSIZE succeeded