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:
Artur Wieczorek
2015-06-13 22:30:13 +02:00
parent 8ff74b727a
commit dc3f451acb

View File

@@ -1058,7 +1058,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
arr.Add((void*)*it); arr.Add((void*)*it);
} }
if ( arr.GetCount() ) if ( !arr.empty() )
{ {
size_t n; size_t n;
@@ -1394,7 +1394,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
bool retVal; bool retVal;
if ( failures || errorMessages.size() ) if ( failures || !errorMessages.empty() )
{ {
retVal = false; retVal = false;