From: imn Date: Tue, 29 Nov 2016 13:37:19 +0000 (+0300) Subject: Removed parameter "theStudy" in "DumpPython" X-Git-Tag: Before_python3_27062017~1^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=940504be55e41cf5fc64e047a18cfaa0e430e10f;p=modules%2Fmed.git Removed parameter "theStudy" in "DumpPython" --- diff --git a/src/MEDCalc/cmp/MED.cxx b/src/MEDCalc/cmp/MED.cxx index 1c65f366e..3ec7bbe09 100644 --- a/src/MEDCalc/cmp/MED.cxx +++ b/src/MEDCalc/cmp/MED.cxx @@ -356,11 +356,12 @@ MED::getStudyPresentationEntry(SALOMEDS::Study_ptr study, CORBA::Long presentati Engines::TMPFile* -MED::DumpPython(CORBA::Object_ptr theStudy, - CORBA::Boolean isPublished, +MED::DumpPython(CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean& isValidScript) { + SALOME_LifeCycleCORBA lcc; + CORBA::Object_var theStudy = lcc.namingService()->Resolve("/Study"); SALOMEDS::Study_var aStudy = SALOMEDS::Study::_narrow(theStudy); if(CORBA::is_nil(aStudy)) { std::cerr << "Error: Cannot find the study\n"; diff --git a/src/MEDCalc/cmp/MED.hxx b/src/MEDCalc/cmp/MED.hxx index b970de034..69a625390 100644 --- a/src/MEDCalc/cmp/MED.hxx +++ b/src/MEDCalc/cmp/MED.hxx @@ -84,8 +84,7 @@ public: void cleanUp(); /*! Dump the study as a Python file */ - virtual Engines::TMPFile* DumpPython(CORBA::Object_ptr theStudy, - CORBA::Boolean isPublished, + virtual Engines::TMPFile* DumpPython(CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean& isValidScript);