]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Integer.cpp
Salome HOME
Issue #3237: Allow usage of accented characters in ObjectBrowser
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Integer.cpp
index ea9ecc57205f6a2c01daf333a18faae5d45c8ef3..6f7a9ae7b766b67a82a2b66b4def03ff41072aa9 100644 (file)
@@ -31,13 +31,13 @@ ModelHighAPI_Integer::ModelHighAPI_Integer(int theValue)
 {
 }
 
-ModelHighAPI_Integer::ModelHighAPI_Integer(const std::string & theValue)
+ModelHighAPI_Integer::ModelHighAPI_Integer(const std::wstring & theValue)
 : myVariantType(VT_STRING)
 , myString(theValue)
 {
 }
 
-ModelHighAPI_Integer::ModelHighAPI_Integer(const char * theValue)
+ModelHighAPI_Integer::ModelHighAPI_Integer(const wchar_t * theValue)
 : myVariantType(VT_STRING)
 , myString(theValue)
 {
@@ -63,12 +63,12 @@ int ModelHighAPI_Integer::intValue() const
   return myInt;
 }
 
-std::string ModelHighAPI_Integer::string() const
+std::wstring ModelHighAPI_Integer::string() const
 {
   if (myVariantType == VT_STRING)
     return myString;
 
-  std::ostringstream anOut;
+  std::wostringstream anOut;
   anOut << myInt;
   return anOut.str();
 }