]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_FeatureValidator.cpp
Salome HOME
Validators return InfoMessage instead of string as an error
[modules/shaper.git] / src / Model / Model_FeatureValidator.cpp
index 303a465676c90fe08fc484e5a8689856d86db470..06923d32449fc6579c0b66fbae1df529abef5cee 100644 (file)
@@ -5,6 +5,9 @@
 // Author:      Vitaly SMETANNIKOV
 
 #include <Model_FeatureValidator.h>
+
+#include <Events_InfoMessage.h>
+
 #include <Model_Validator.h>
 #include <ModelAPI_Attribute.h>
 #include <ModelAPI_Data.h>
@@ -17,7 +20,7 @@
 
 bool Model_FeatureValidator::isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                      const std::list<std::string>& theArguments,
-                                     std::string& theError) const
+                                     Events_InfoMessage& theError) const
 {
   static Model_ValidatorsFactory* aValidators = 
     static_cast<Model_ValidatorsFactory*>(ModelAPI_Session::get()->validators());