Salome HOME
projects
/
modules
/
yacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f014574
)
Porting Python3: Decode strings
author
Gilles DAVID
<gilles-g.david@edf.fr>
Tue, 6 Jun 2017 12:40:23 +0000
(14:40 +0200)
committer
Gilles DAVID
<gilles-g.david@edf.fr>
Tue, 6 Jun 2017 12:40:23 +0000
(14:40 +0200)
src/runtime/StudyNodes.cxx
patch
|
blob
|
history
diff --git
a/src/runtime/StudyNodes.cxx
b/src/runtime/StudyNodes.cxx
index bad02108c81e1b2493cbfc0d561ae88523c2e2f2..42282c0eb3c09d006d52262b81053c13909abadd 100644
(file)
--- a/
src/runtime/StudyNodes.cxx
+++ b/
src/runtime/StudyNodes.cxx
@@
-24,6
+24,7
@@
#include "TypeCode.hxx"
#include "SalomeProc.hxx"
#include "TypeCode.hxx"
#include "SalomeProc.hxx"
+#include "Basics_Utils.hxx"
#include "SALOME_NamingService.hxx"
#include "SALOMEDS.hh"
#include "SALOMEDS_Attributes.hh"
#include "SALOME_NamingService.hxx"
#include "SALOMEDS.hh"
#include "SALOMEDS_Attributes.hh"
@@
-280,7
+281,7
@@
void StudyOutNode::execute()
//open a new one
std::stringstream msg;
msg << "Study" << studyid;
//open a new one
std::stringstream msg;
msg << "Study" << studyid;
- myStudy=aStudyManager->NewStudy(
msg.str().c_str(
));
+ myStudy=aStudyManager->NewStudy(
Kernel_Utils::decode_s(msg.str()
));
if(CORBA::is_nil(myStudy))
{
_errorDetails="Execution problem: can not create new study " + msg.str();
if(CORBA::is_nil(myStudy))
{
_errorDetails="Execution problem: can not create new study " + msg.str();
@@
-311,7
+312,7
@@
void StudyOutNode::execute()
// save in file if ref is given
if(_ref != "")
{
// save in file if ref is given
if(_ref != "")
{
- aStudyManager->SaveAs(
_ref.c_str(
),myStudy, false);
+ aStudyManager->SaveAs(
Kernel_Utils::decode_s(_ref
),myStudy, false);
}
DEBTRACE("+++++++ end StudyOutNode::execute +++++++++++" );
}
}
DEBTRACE("+++++++ end StudyOutNode::execute +++++++++++" );
}