-// Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include <GeomValidators_ZeroOffset.h>
{
// LCOV_EXCL_START
if(theArguments.size() != 9) {
- theError = "Wrong number of validator arguments in xml(expected 9).";
+ theError = "Wrong number of validator arguments in xml (expected 9).";
return false;
}
// LCOV_EXCL_STOP
- std::list<std::string>::const_iterator anIt = theArguments.begin(), aLast = theArguments.end();
+ std::list<std::string>::const_iterator anIt = theArguments.begin();
std::string aSelectedMethod;
if(theFeature->string(*anIt)) {
aSelectedMethod = theFeature->string(*anIt)->value();
}
+ if (aSelectedMethod == "ThroughAll") return true;
anIt++;
std::string aCreationMethod = *anIt;
anIt++;
aToShape = anAttrSel->context()->shape();
}
if (aToShape->isCompound()) {
- GeomAPI_ShapeIterator anIt(aToShape);
- aToShape = anIt.current();
+ GeomAPI_ShapeIterator aSIt(aToShape);
+ aToShape = aSIt.current();
}
}
anIt++;
aFromShape = anAttrSel->context()->shape();
}
if (aFromShape->isCompound()) {
- GeomAPI_ShapeIterator anIt(aFromShape);
- aFromShape = anIt.current();
+ GeomAPI_ShapeIterator aSIt(aFromShape);
+ aFromShape = aSIt.current();
}
}
anIt++;