Salome HOME
updated copyright message
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Double.cpp
index 8b4c2f04848a3646cc5bf5ac09144a8088655982..fa450101b0a90ecb08c1b2f626585409faf71e34 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-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
@@ -32,13 +32,13 @@ ModelHighAPI_Double::ModelHighAPI_Double(double theValue)
 {
 }
 
-ModelHighAPI_Double::ModelHighAPI_Double(const std::string & theValue)
+ModelHighAPI_Double::ModelHighAPI_Double(const std::wstring & theValue)
 : myVariantType(VT_STRING)
 , myString(theValue)
 {
 }
 
-ModelHighAPI_Double::ModelHighAPI_Double(const char * theValue)
+ModelHighAPI_Double::ModelHighAPI_Double(const wchar_t * theValue)
 : myVariantType(VT_STRING)
 , myString(theValue)
 {
@@ -54,12 +54,12 @@ double ModelHighAPI_Double::value() const
   return myDouble;
 }
 
-std::string ModelHighAPI_Double::string() const
+std::wstring ModelHighAPI_Double::string() const
 {
   if (myVariantType == VT_STRING)
     return myString;
 
-  std::ostringstream anOut;
+  std::wostringstream anOut;
   anOut << myDouble;
   return anOut.str();
 }