Salome HOME
[bos #32342] EDF 26130 - Undo and auxiliarity
[modules/shaper.git] / src / Selector / Selector_Primitive.cpp
index 6b5706f8b317a3fd2bd230384ba5c397e0ebd78f..60b8d7f7dce9b02ed591ddd6f2175e1c32e19b85 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -21,6 +21,8 @@
 
 #include <Selector_NameGenerator.h>
 
+#include <Locale_Convert.h>
+
 #include <TNaming_NamedShape.hxx>
 #include <TDataStd_Name.hxx>
 
@@ -48,7 +50,7 @@ bool Selector_Primitive::restore()
 }
 
 TDF_Label Selector_Primitive::restoreByName(std::wstring theName,
-  const TopAbs_ShapeEnum theShapeType, Selector_NameGenerator* theNameGenerator)
+  const TopAbs_ShapeEnum /*theShapeType*/, Selector_NameGenerator* theNameGenerator)
 {
   TDF_Label aContext;
   if (theNameGenerator->restoreContext(theName, aContext, myFinal)) {
@@ -80,7 +82,7 @@ std::wstring Selector_Primitive::name(Selector_NameGenerator* theNameGenerator)
   std::wstring aResult = theNameGenerator->contextName(myFinal);
   if (!aResult.empty()) {
     aResult += L"/";
-    aResult += ((wchar_t*)aName->Get().ToExtString());
+    aResult += Locale::Convert::toWString(aName->Get().ToExtString());
   }
   return aResult;
 }