From: Anthony Geay Date: Mon, 24 Jan 2022 13:56:07 +0000 (+0100) Subject: GEOMGUI uses standard LifeCycle to instanciate GEOM engine X-Git-Tag: V9_9_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fgeom.git;a=commitdiff_plain;h=58bfedf8f6f0bfe4f20b76b8982c26cfeda4cc65 GEOMGUI uses standard LifeCycle to instanciate GEOM engine --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index e451b6f61..9f02f82ee 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -223,17 +223,7 @@ GeometryGUI::GeometryGUI() : SalomeApp_Module( "GEOM" ) if ( CORBA::is_nil( myComponentGeom ) ) { SALOME_NamingService_Abstract *ns = SalomeApp_Application::namingService(); - Engines::EngineComponent_var comp; - if( dynamic_cast(ns) ) - { - comp = SalomeApp_Application::lcc()->FindOrLoad_Component( "FactoryServer", "GEOM" ); - } - else - { - comp = RetrieveGEOMInstance(); - CORBA::Object_var comp2 = CORBA::Object::_narrow(comp); - KERNEL::RegisterCompo("GEOM",comp2); - } + Engines::EngineComponent_var comp = SalomeApp_Application::lcc()->FindOrLoad_Component( "FactoryServer", "GEOM" ); myComponentGeom = GEOM::GEOM_Gen::_narrow( comp ); }