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:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user