From: Eduardo DAVILA Date: Thu, 15 Dec 2022 16:51:41 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0476e60e846b03c8796cc74a1308b575cd3dcad6;p=bbtk.git Clean code --- diff --git a/packages/std/src/bbstdVectorFilterString.cxx b/packages/std/src/bbstdVectorFilterString.cxx index fc996ad..ee02ef6 100644 --- a/packages/std/src/bbstdVectorFilterString.cxx +++ b/packages/std/src/bbstdVectorFilterString.cxx @@ -162,7 +162,7 @@ void VectorFilterString::SwitchElement(std::vector *pVec, int i, in { std::string tmp; - if ( (isize()) && (iisize()) ) + if ( ( i < pVec->size() ) && ( ii < pVec->size() ) ) { tmp = (*pVec)[i]; (*pVec)[i] = (*pVec)[ii]; @@ -184,9 +184,9 @@ void VectorFilterString::OrderLists() std::vector vOut9=bbGetInputIn9(); int i,ii,size = bbGetInputIn0().size(); bool ok; - for (i=0; i<=size; i++) + for (i=0; i