From: Anthony Geay Date: Thu, 14 Jan 2021 06:27:39 +0000 (+0100) Subject: WIP X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9596745007118e641cdff7bb592fae0936c990ee;p=modules%2Fgeom.git WIP --- diff --git a/src/GEOM_SWIG/GeomHelper.cxx b/src/GEOM_SWIG/GeomHelper.cxx index 25b717079..f971360be 100644 --- a/src/GEOM_SWIG/GeomHelper.cxx +++ b/src/GEOM_SWIG/GeomHelper.cxx @@ -49,6 +49,10 @@ std::string BuildGEOMInstance() GEOM_Gen_i *servant = new GEOM_Gen_i(orb,poa,const_cast(&conId.in()),"GEOM_inst_2","GEOM",false,false); PortableServer::ObjectId *zeId = servant->getId(); CORBA::Object_var zeRef = poa->id_to_reference(*zeId); + char *interfaceName = servant->interfaceName(); + std::string interfaceNameCpp(interfaceName); + CORBA::string_free(interfaceName); + KERNEL::RegisterCompo(interfaceNameCpp,zeRef); CORBA::String_var ior = orb->object_to_string(zeRef); return std::string(ior.in()); }