From 58bfedf8f6f0bfe4f20b76b8982c26cfeda4cc65 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 24 Jan 2022 14:56:07 +0100 Subject: [PATCH] GEOMGUI uses standard LifeCycle to instanciate GEOM engine --- src/GEOMGUI/GeometryGUI.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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 ); } -- 2.39.2