Salome HOME
Different salome launchers for release and debug version (for proper environment).
[modules/shaper.git] / src / GeomValidators / GeomValidators_ConstructionComposite.cpp
index b19719831ce1846d1ba90a5c928e46f00769f1ee..8ae2b2dbf769cc9af7a7b132bd8f2f11feb752e9 100644 (file)
@@ -2,18 +2,21 @@
 
 #include "GeomValidators_ConstructionComposite.h"
 
+#include <Events_InfoMessage.h>
+
 #include "ModelAPI_AttributeSelection.h"
 #include "ModelAPI_ResultConstruction.h"
 #include "ModelAPI_CompositeFeature.h"
 
 bool GeomValidators_ConstructionComposite::isValid(const AttributePtr& theAttribute,
                                                    const std::list<std::string>& theArguments,
-                                                   std::string& theError) const
+                                                   Events_InfoMessage& theError) const
 {
   bool aValid = true;
   if (theAttribute->attributeType() != ModelAPI_AttributeSelection::typeId()) {
     aValid = false;
-    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 aValid;
   }