X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ExportPart.cpp;h=dee52674dbf530876040068161ed0c212becf7a9;hb=5a5362530345c00af26fc8226f3066f749dde392;hp=7ef6c5fe6c329efd30740c0d22eeeab63db4ede8;hpb=46c0759fa291dad10b713cf02b341d6e9e60c1a4;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ExportPart.cpp b/src/ExchangePlugin/ExchangePlugin_ExportPart.cpp index 7ef6c5fe6..dee52674d 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportPart.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportPart.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2020 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 @@ -50,7 +50,7 @@ static bool verifyExport(const std::list& theFeatures, std::list& theExportedParts, std::list& theReferredParts); // Collect names of features as a single string -static std::string namesOfFeatures(const std::list& theFeatures); +static std::wstring namesOfFeatures(const std::list& theFeatures); ExchangePlugin_ExportPart::ExchangePlugin_ExportPart() @@ -101,7 +101,7 @@ void ExchangePlugin_ExportPart::execute() std::list anExternalLinks, anExportedParts, aReferredParts; if (!verifyExport(aFeaturesToExport, anExternalLinks, anExportedParts, aReferredParts)) { if (!anExternalLinks.empty()) { - std::string aListOfFeatures = namesOfFeatures(anExternalLinks); + std::wstring aListOfFeatures = namesOfFeatures(anExternalLinks); std::string aMessage = "The selected results were created using external references " "outside of this Part from features %1. " @@ -110,7 +110,7 @@ void ExchangePlugin_ExportPart::execute() Events_InfoMessage(getKind(), aMessage).arg(aListOfFeatures).send(); } if (!aReferredParts.empty()) { - std::string aListOfParts = namesOfFeatures(aReferredParts); + std::wstring aListOfParts = namesOfFeatures(aReferredParts); std::string aMessage = "The selected results were created using references " "to the results of Parts: %1. Please, remove these references " @@ -118,7 +118,7 @@ void ExchangePlugin_ExportPart::execute() Events_InfoMessage(getKind(), aMessage).arg(aListOfParts).send(); } if (!anExportedParts.empty()) { - std::string aListOfParts = namesOfFeatures(anExportedParts); + std::wstring aListOfParts = namesOfFeatures(anExportedParts); std::string aMessage = "The export of Part's result is forbidden (%1)."; Events_InfoMessage(getKind(), aMessage).arg(aListOfParts).send(); @@ -273,9 +273,9 @@ bool verifyExport(const std::list& theFeatures, return theExternalReferences.empty() && theExportedParts.empty() && theReferredParts.empty(); } -std::string namesOfFeatures(const std::list& theFeatures) +std::wstring namesOfFeatures(const std::list& theFeatures) { - std::ostringstream aListOfFeatures; + std::wostringstream aListOfFeatures; for (std::list::const_iterator anIt = theFeatures.begin(); anIt != theFeatures.end(); ++anIt) { if (anIt != theFeatures.begin())