From: Anthony Geay Date: Tue, 23 Feb 2021 08:23:54 +0000 (+0100) Subject: small modif X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=260f90385fc656b826376155ca97208818ef1800;p=modules%2Fgeom.git small modif --- diff --git a/src/GEOM_SWIG/GeomHelper.cxx b/src/GEOM_SWIG/GeomHelper.cxx index f4e6251a9..9633a001b 100644 --- a/src/GEOM_SWIG/GeomHelper.cxx +++ b/src/GEOM_SWIG/GeomHelper.cxx @@ -19,16 +19,13 @@ #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()); }