From 260f90385fc656b826376155ca97208818ef1800 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 23 Feb 2021 09:23:54 +0100 Subject: [PATCH] small modif --- src/GEOM_SWIG/GeomHelper.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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()); } -- 2.39.2