Refactor wxPropertyGrid::GenerateEditorTextCtr, cont.

Use Boolean expression instead of conditional statement to initialize Boolean value.
This commit is contained in:
Artur Wieczorek 2015-08-20 20:54:46 +02:00
parent b43549eb2d
commit 64bcd668c7

View File

@ -1926,10 +1926,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
}
// If the height is significantly higher, then use border, and fill the rect exactly.
bool hasSpecialSize = false;
if ( (sz.y - m_lineHeight) > 5 )
hasSpecialSize = true;
const bool hasSpecialSize = (sz.y - m_lineHeight) > 5;
wxWindow* ctrlParent = GetPanel();