Salome HOME
Fix compilation of ModelHighAPI on CentOS
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Validators.cpp
index e08b9854aa48929e6f2c7cf7b659f335d3c88973..a0117d84ef3131ef50cdd11088287c60c8fb31cc 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <ExchangePlugin_Tools.h>
 
+#include <Events_InfoMessage.h>
+
 #include <ModelAPI_Feature.h>
 #include <ModelAPI_Object.h>
 #include <ModelAPI_Session.h>
@@ -39,7 +41,7 @@ bool ExchangePlugin_FormatValidator::parseFormats(const std::list<std::string>&
 
 bool ExchangePlugin_FormatValidator::isValid(const AttributePtr& theAttribute,
                                              const std::list<std::string>& theArguments,
-                                             std::string& theError) const
+                                             Events_InfoMessage& theError) const
 {
   if (!theAttribute->isInitialized()) {
     theError = "Is not initialized.";