Use empty() member function to determine if arrays are empty in wxPG.
Use this dedicated function instead of checking if size() function returns zero/non-zero value.
This commit is contained in:
@@ -1036,7 +1036,7 @@ bool wxPropertyGridInterface::RestoreEditableState( const wxString& src, int res
|
||||
{
|
||||
if ( restoreStates & SelectionState )
|
||||
{
|
||||
if ( values.size() > 0 )
|
||||
if ( !values.empty() )
|
||||
{
|
||||
if ( pageState->IsDisplayed() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user