From dc3f451acbebde4bf5ffeb5ca050262c19a39c6e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 13 Jun 2015 22:30:13 +0200 Subject: [PATCH] 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. --- samples/propgrid/tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/propgrid/tests.cpp b/samples/propgrid/tests.cpp index 4926e2f4e5..07e539d172 100644 --- a/samples/propgrid/tests.cpp +++ b/samples/propgrid/tests.cpp @@ -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;