X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGeomValidators%2FGeomValidators_BodyShapes.cpp;h=504daa4afda22792eb6f04cd8881092d173e6621;hb=ba727bd58bc3166536229f47c363a14d5a126fa7;hp=18bd9918a59949e9634eda8708923eb10f27695a;hpb=a8cfbfb436c27ff96edd5c808e9a452c35cef207;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_BodyShapes.cpp b/src/GeomValidators/GeomValidators_BodyShapes.cpp index 18bd9918a..504daa4af 100644 --- a/src/GeomValidators/GeomValidators_BodyShapes.cpp +++ b/src/GeomValidators/GeomValidators_BodyShapes.cpp @@ -6,13 +6,15 @@ #include "GeomValidators_BodyShapes.h" +#include + #include #include #include bool GeomValidators_BodyShapes::isValid(const AttributePtr& theAttribute, const std::list& theArguments, - std::string& theError) const + Events_InfoMessage& theError) const { std::string anAttributeType = theAttribute->attributeType(); if(anAttributeType == ModelAPI_AttributeSelection::typeId()) { @@ -41,7 +43,8 @@ bool GeomValidators_BodyShapes::isValid(const AttributePtr& theAttribute, } } } else { - theError = "Error: Attribute \"" + anAttributeType + "\" does not supported by this validator."; + theError = "Error: Attribute \"%1\" does not supported by this validator."; + theError.arg(anAttributeType); return false; }