Salome HOME
Task #3237: Allow usage of accented characters in ObjectBrowser
[modules/shaper.git] / src / GeomValidators / GeomValidators_Positive.cpp
index 241cf7851bac718df3868e8a3b13ee1c32170ed4..13e9a0241e4bd6edf077998d133c4e5056e412d1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -12,9 +12,9 @@
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #include "GeomValidators_Positive.h"
@@ -47,7 +47,6 @@ bool GeomValidators_Positive::isValid(const AttributePtr& theAttribute,
   double aMinValue = 1.e-5;
   if(theArguments.size() == 1) {
     std::list<std::string>::const_iterator anIt = theArguments.begin();
-    char *aErr;
     double aValue = Config_PropManager::stringToDouble((*anIt).c_str());
     if(aValue != 0) {
       // very probably ok
@@ -63,7 +62,7 @@ bool GeomValidators_Positive::isValid(const AttributePtr& theAttribute,
       return false;
     }
     if (aDouble->value() <= aMinValue) {
-      theError = "Double is not positive.";
+      theError = "Value is too small.";
       return false;
     }
   }