Salome HOME
updated copyright message
[modules/gui.git] / tools / CurvePlot / src / cpp / CurvePlot.cxx
index d1a37150e29fd9cb24be5d00069e0b233ade5e2c..c80f3b7cc707ffadcbad8dc6ebabdcabb9ae4906 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -47,7 +47,7 @@ namespace
         throw CURVEPLOT::Exception(msg);
       }
   }
-};
+}
 
 namespace CURVEPLOT
 {
@@ -159,7 +159,7 @@ namespace CURVEPLOT
        if(!PyUnicode_Check(ret_py))
          throw Exception("CurvePlot::toStdString(): Unexpected returned type!");
        Py_ssize_t size;
-       char *ptr = PyUnicode_AsUTF8AndSize(ret_py, &size);
+       const char *ptr = PyUnicode_AsUTF8AndSize(ret_py, &size);
        ret_str = std::string(ptr);
     }
     return ret_str;