From 71a7b6482238aca3532ced50b564cca68e002254 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Tue, 24 Feb 2026 16:29:16 +0100 Subject: [PATCH] Clean code --- packages/std/src/bbstdVectorFilterDouble.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/std/src/bbstdVectorFilterDouble.cxx b/packages/std/src/bbstdVectorFilterDouble.cxx index f4e0d69..3e1bb8c 100644 --- a/packages/std/src/bbstdVectorFilterDouble.cxx +++ b/packages/std/src/bbstdVectorFilterDouble.cxx @@ -70,7 +70,6 @@ void VectorFilterDouble::Process() pLstVecOut.push_back( &Out9 ); if (bbGetInputType()==-1) // Erase lines if In0==k1 { - double k1 = bbGetInputk1()[0]; if (bbGetInputIn0().size()!=0) // At least one element { bool okSizeVec=true; @@ -79,10 +78,15 @@ void VectorFilterDouble::Process() { if ( (*pLstVec[ipLstvec]).size()!=(*pLstVec[0]).size() ) { okSizeVec=false; } } + if (bbGetInputk1().size()!=0) + { + okSizeVec=false; + } if ( okSizeVec==false) { - printf("EED VectorFilterDouble::Process WARNING! vectors are not of the same size.\n"); + printf("EED VectorFilterDouble::Process WARNING! vectors are not of the same size. And k1 need one element.\n"); } else { + double k1 = bbGetInputk1()[0]; int iLine; int ipLstvec2; bool okLine; @@ -99,7 +103,7 @@ void VectorFilterDouble::Process() // if ( (*pLstVec[ipLstvec2])[iLine]!=(*pLstVec[ipLstvec2])[iLine-1] ) { okLine=true; } // } // for ipLstVec2 - if ( (okLine==true) || (iLine==0) ) + if ( okLine==true) { for (ipLstvec2=0 ; ipLstvec2