]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_ValidatorTransform.cpp
Salome HOME
Validators return InfoMessage instead of string as an error
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_ValidatorTransform.cpp
index 570d1fb6ffb385fd3a2b4d2f5034e0b4e7b0d4f3..9722f88361b267612baf4f5264c75aebe2b00975 100755 (executable)
@@ -2,6 +2,8 @@
 
 #include "FeaturesPlugin_ValidatorTransform.h"
 
+#include <Events_InfoMessage.h>
+
 #include "ModelAPI_AttributeSelectionList.h"
 #include "ModelAPI_ResultPart.h"
 #include "ModelAPI_ResultBody.h"
@@ -10,7 +12,7 @@
 
 bool FeaturesPlugin_ValidatorTransform::isValid(const AttributePtr& theAttribute,
                                                 const std::list<std::string>& theArguments,
-                                                std::string& theError) const
+                                                Events_InfoMessage& theError) const
 {
   bool aValid = true;
   std::string anAttributeType = theAttribute->attributeType();