X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FATOMSOLVGUI%2FATOMSOLVGUI.cxx;h=749ec35abf948ac990e24029842ac52bd4efffc0;hb=547f34e17f207cc0801e5322205d7d4980e4f02a;hp=3206e8f48a3c6a9b44e183cad40f9e558f2644dd;hpb=eb8cd5566bc667daec7874ed9f681d59b2198914;p=samples%2Fatomsolv.git diff --git a/src/ATOMSOLVGUI/ATOMSOLVGUI.cxx b/src/ATOMSOLVGUI/ATOMSOLVGUI.cxx index 3206e8f..749ec35 100644 --- a/src/ATOMSOLVGUI/ATOMSOLVGUI.cxx +++ b/src/ATOMSOLVGUI/ATOMSOLVGUI.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -22,7 +22,6 @@ #include "ATOMSOLVGUI_Displayer.h" #include "ATOMSOLVGUI_Selection.h" #include "ATOMSOLVGUI_TransparencyDlg.h" -#include "ATOMSOLV_Component_Generator.hxx" #include @@ -77,17 +76,7 @@ void ATOMSOLVGUI::InitATOMSOLVGen( SalomeApp_Application* app ) myEngine = ATOMSOLV_ORB::ATOMSOLV_Gen::_nil(); else { SALOME_NamingService_Abstract *ns = SalomeApp_Application::namingService(); - Engines::EngineComponent_var comp; - if(ns->IsTrueNS()) - { - comp = app->lcc()->FindOrLoad_Component( "FactoryServer", "ATOMSOLV" ); - } - else - { - comp = RetrieveATOMSOLVInstance(); - CORBA::Object_var comp2 = CORBA::Object::_narrow(comp); - KERNEL::RegisterCompo("ATOMSOLV",comp2); - } + Engines::EngineComponent_var comp = app->lcc()->FindOrLoad_Component( "FactoryServer", "ATOMSOLV" ); ATOMSOLV_ORB::ATOMSOLV_Gen_ptr atomGen = ATOMSOLV_ORB::ATOMSOLV_Gen::_narrow(comp); ASSERT( !CORBA::is_nil( atomGen ) ); myEngine = atomGen;