X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Application.cpp;h=7ffbf61a5712f1ba4423ec53a578a9e04a834597;hb=81baa77e52cb1ade2bfbe5b21e893cc34b03c323;hp=36634ff15c608251553bed5be3e7d4a31ed42f0c;hpb=f14192492e36f4febc93b2ad7ab7f866cbbdf71b;p=modules%2Fshaper.git diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index 36634ff15..7ffbf61a5 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 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 @@ -23,6 +23,8 @@ #include #include +#include + #include #include @@ -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;