Salome HOME
Merge branch 'master' of salome:modules/shaper
[modules/shaper.git] / src / GeomValidators / GeomValidators_Face.cpp
index f91066da277bdea6b64fcf8cb859b36b40a48773..dd415526378ab07ea1531b9d0558641f260fb1b2 100644 (file)
@@ -34,11 +34,12 @@ GeomAbs_SurfaceType faceType(const std::string& theType)
 
 bool GeomValidators_Face::isValid(const AttributePtr& theAttribute,
                                   const std::list<std::string>& theArguments,
-                                  std::string& theError) const
+                                  Events_InfoMessage& theError) const
 {
   std::string anAttributeType = theAttribute->attributeType();
   if (anAttributeType != ModelAPI_AttributeSelection::typeId()) {
-    theError = "The attribute with the " + theAttribute->attributeType() + " type is not processed";
+    theError = "The attribute with the %1 type is not processed";
+    theError.arg(theAttribute->attributeType());
     return false;
   }