]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
WIP agy/archi2_0
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 14 Jan 2021 06:27:39 +0000 (07:27 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 14 Jan 2021 06:27:39 +0000 (07:27 +0100)
src/GEOM_SWIG/GeomHelper.cxx

index 25b717079c7127526ef93a1d573d3e8861045cab..f971360be416531c1125ca9169a6de799932a126 100644 (file)
@@ -49,6 +49,10 @@ std::string BuildGEOMInstance()
     GEOM_Gen_i *servant = new GEOM_Gen_i(orb,poa,const_cast<PortableServer::ObjectId*>(&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());
 }