Salome HOME
Fix compilation of ModelHighAPI on CentOS
[modules/shaper.git] / src / GeomValidators / GeomValidators_Positive.cpp
index 1435e5995ffab3520551febf7a9fbb234f865fe1..17c38fb19035600799d5bb7808f814aa15b43347 100644 (file)
@@ -5,11 +5,16 @@
 // Author:      Mikhail PONIKAROV
 
 #include "GeomValidators_Positive.h"
+
+#include <Events_InfoMessage.h>
+
 #include <ModelAPI_AttributeDouble.h>
 #include <ModelAPI_AttributeInteger.h>
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
 
+#include <cmath>
+
 /// Global instance for validators factory
 GeomValidators_Positive MY_POSITIVE_INSTANCE;
 
@@ -23,7 +28,7 @@ GeomValidators_Positive::GeomValidators_Positive()
 
 bool GeomValidators_Positive::isValid(const AttributePtr& theAttribute, 
                                       const std::list<std::string>& theArguments,
-                                      std::string& theError) const
+                                      Events_InfoMessage& theError) const
 {
   double aMinValue = 1.e-5;
   if(theArguments.size() == 1) {