Salome HOME
updated copyright message
[modules/shaper.git] / src / Model / Model_Application.cpp
index 36634ff15c608251553bed5be3e7d4a31ed42f0c..24ca317a91f5159ffdeada098b333450fb407d82 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
@@ -23,6 +23,8 @@
 #include <ModelAPI_Events.h>
 #include <ModelAPI_Tools.h>
 
+#include <Locale_Convert.h>
+
 #include <BinDrivers_DocumentRetrievalDriver.hxx>
 #include <BinDrivers_DocumentStorageDriver.hxx>
 
@@ -71,7 +73,7 @@ bool Model_Application::loadDocument(const std::wstring theDocName, const int th
   bool aRes = true;
   // load it if it must be loaded by demand
   if (myLoadedByDemand.find(theDocName) != myLoadedByDemand.end() && !myPath.empty()) {
-    aRes = aNew->load(myPath.c_str(), ModelAPI_Tools::toString(theDocName).c_str(), aNew);
+    aRes = aNew->load(myPath.c_str(), Locale::Convert::toString(theDocName).c_str(), aNew);
     myLoadedByDemand.erase(theDocName);  // done, don't do it anymore
   } else { // error
     aRes = false;