Salome HOME
updated copyright message
[modules/shaper.git] / src / Events / Events_InfoMessage.cpp
index 50f41d1214d765149bd947cdac6004978b42d968..54088a90f7224774098dcdc7aa0933f931eca4ca 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  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
@@ -18,8 +18,8 @@
 //
 
 #include "Events_InfoMessage.h"
+#include <Locale_Convert.h>
 #include <sstream>
-#include <codecvt>
 
 void Events_InfoMessage::addParameter(double theParam)
 {
@@ -43,7 +43,6 @@ void Events_InfoMessage::send()
 
 Events_InfoMessage& Events_InfoMessage::arg(const std::wstring& theParam)
 {
-  static std::wstring_convert<std::codecvt_utf8<wchar_t> > aConvertor;
-  addParameter(aConvertor.to_bytes(theParam));
+  addParameter(Locale::Convert::toString(theParam));
   return *this;
 }