]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_Validator.h
Salome HOME
Validators return InfoMessage instead of string as an error
[modules/shaper.git] / src / Model / Model_Validator.h
index 0040d8c2b2c2c0c11e363549fc804c100d6be135..2fd016478963d1f9f58fd5f11707297330d68c12 100644 (file)
@@ -78,7 +78,7 @@ class Model_ValidatorsFactory : public ModelAPI_ValidatorsFactory
 
   /// Returns true if the attribute is valid.
   MODEL_EXPORT virtual bool validate(const std::shared_ptr<ModelAPI_Attribute>& theAttribute,
-                                     std::string& theValidator, std::string& theError) const;
+                                     std::string& theValidator, Events_InfoMessage& theError) const;
 
   /// register that this attribute in feature is not obligatory for the feature execution
   /// so, it is not needed for the standard validation mechanism