]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
small modif
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2021 08:23:54 +0000 (09:23 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2021 08:23:54 +0000 (09:23 +0100)
src/GEOM_SWIG/GeomHelper.cxx

index f4e6251a9eab0dbcb5c0fa91e1304602ef86601c..9633a001b9ecd2c71392f47f2454bab033146c88 100644 (file)
 
 #include "GeomHelper.h"
 
+#include "SALOME_KernelServices.hxx"
+
 #include "GEOM_Component_Generator.hxx"
 
 std::string BuildGEOMInstance()
 {
-  CORBA::ORB_var orb;
-  {
-    int argc(0);
-    orb = CORBA::ORB_init(argc, nullptr);
-  }
   Engines::EngineComponent_var zeRef = RetrieveGEOMInstance();
-  CORBA::String_var ior = orb->object_to_string(zeRef);
+  CORBA::String_var ior = KERNEL::getORB()->object_to_string(zeRef);
   return std::string(ior.in());
 }