Use empty() member function to determine if arrays are empty in propgrid sample.
Use this dedicated function instead of checking if size()/GetCount() functions return zero/non-zero value.
This commit is contained in:
parent
8ff74b727a
commit
dc3f451acb
@ -1058,7 +1058,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
arr.Add((void*)*it);
|
||||
}
|
||||
|
||||
if ( arr.GetCount() )
|
||||
if ( !arr.empty() )
|
||||
{
|
||||
size_t n;
|
||||
|
||||
@ -1394,7 +1394,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
|
||||
bool retVal;
|
||||
|
||||
if ( failures || errorMessages.size() )
|
||||
if ( failures || !errorMessages.empty() )
|
||||
{
|
||||
retVal = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user