From 00e469ccab33ec32a89d9a697f463b875fab05af Mon Sep 17 00:00:00 2001 From: Valentin Noel Date: Mon, 16 Dec 2013 11:09:55 +0100 Subject: [PATCH] minor clean in Checker issue #33 --- .../ElementChecker/src/ElementChecker/Checker/Checker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/ElementChecker/src/ElementChecker/Checker/Checker.cpp b/libraries/ElementChecker/src/ElementChecker/Checker/Checker.cpp index 7c5ace2..87d4771 100644 --- a/libraries/ElementChecker/src/ElementChecker/Checker/Checker.cpp +++ b/libraries/ElementChecker/src/ElementChecker/Checker/Checker.cpp @@ -267,9 +267,9 @@ bool Checker::isIterationValid( const ShPtrElement element, std::string& errorMe size_t repetMin = 0; size_t repetMax = 0; - if( ! repetPair.first.empty() ) + if( repetPair.first.size() ) repetMin = _exprParser->getExpressionResult< size_t >( repetPair.first ); - if( ! repetPair.second.empty() ) + if( repetPair.second.size() ) repetMax = _exprParser->getExpressionResult< size_t >( repetPair.second ); LOG_TRACE( "[checker] repetitions : " << element->_iteration << " / [" << repetMin << ", " << repetMax << "]" );