-// 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
throw CURVEPLOT::Exception(msg);
}
}
-};
+}
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;