X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomValidators%2FGeomValidators_PartitionArguments.cpp;h=f4482579ff1ee6cb8fccfe8ee40761731667d08c;hb=2054879244f3323c305222c79c57d2db6a487538;hp=e94ebca48b78788a4b3c0442be57141118d86b4d;hpb=020e7187ee88afbd18286f149536cdef61d9f61e;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_PartitionArguments.cpp b/src/GeomValidators/GeomValidators_PartitionArguments.cpp index e94ebca48..f4482579f 100644 --- a/src/GeomValidators/GeomValidators_PartitionArguments.cpp +++ b/src/GeomValidators/GeomValidators_PartitionArguments.cpp @@ -6,13 +6,15 @@ #include +#include + #include #include //================================================================================================= bool GeomValidators_PartitionArguments::isValid(const std::shared_ptr& theFeature, const std::list& theArguments, - std::string& theError) const + Events_InfoMessage& theError) const { if(theArguments.size() != 3) { theError = "Wrong number of arguments (expected 3)."; @@ -41,7 +43,8 @@ bool GeomValidators_PartitionArguments::isValid(const std::shared_ptrvalue(); } - if((anObjectsNb > 0 && aToolsNb > 0) || (isCombine && anObjectsNb != 0 && (anObjectsNb + aToolsNb > 1))) { + if((anObjectsNb > 0 && aToolsNb > 0) || + (isCombine && anObjectsNb != 0 && (anObjectsNb + aToolsNb > 1))) { return true; } @@ -50,7 +53,8 @@ bool GeomValidators_PartitionArguments::isValid(const std::shared_ptr