Refactor wxPropertyGrid::GenerateEditorTextCtr, cont.
Use Boolean expression instead of conditional statement to initialize Boolean value.
This commit is contained in:
parent
b43549eb2d
commit
64bcd668c7
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user