]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesAPI/FeaturesAPI_MultiRotation.cpp
Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_MultiRotation.cpp
index 44bbd0b2babe8148faad268be341162bc94c34f6..58188025ebc697bab1bdd3f3536ac855d42538f4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2017-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
@@ -156,12 +156,12 @@ MultiRotationPtr addMultiRotation(const std::shared_ptr<ModelAPI_Document>& theP
   if (theNumber.string().empty()) {
     // rotate for the whole circle
     double aStepVal = theStep.value();
-    std::string aStepStr = theStep.string();
-    std::ostringstream aStepValAsStr;
+    std::wstring aStepStr = theStep.string();
+    std::wostringstream aStepValAsStr;
     aStepValAsStr << aStepVal;
 
     ModelHighAPI_Integer aNumber = aStepStr == aStepValAsStr.str()
-                                 ? ModelHighAPI_Integer(aStepVal)
+                                 ? ModelHighAPI_Integer((int)aStepVal)
                                  : ModelHighAPI_Integer(aStepStr);
     aResult.reset(new FeaturesAPI_MultiRotation(aFeature, theMainObjects, theAxis, aNumber));
   }