-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 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
#include <Selector_NameGenerator.h>
+#include <Locale_Convert.h>
+
#include <TNaming_NamedShape.hxx>
#include <TDataStd_Name.hxx>
}
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)) {
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;
}