X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FATOMSOLVGUI%2FATOMSOLVGUI.cxx;h=f8a9b993049829609a956ddf0bd368cd50735181;hb=09d22bfba971a0e3cf2c16d2169db21e37b5d495;hp=fa0cefaf518a7a8192d072aa837675edea4d128d;hpb=928012d8615f59217d847e323acd20338e829153;p=samples%2Fatomsolv.git diff --git a/src/ATOMSOLVGUI/ATOMSOLVGUI.cxx b/src/ATOMSOLVGUI/ATOMSOLVGUI.cxx index fa0cefa..f8a9b99 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-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -36,6 +36,9 @@ #include #include +#include "SALOME_NamingService_Abstract.hxx" +#include "SALOME_KernelServices.hxx" + #include #include #include @@ -72,6 +75,7 @@ void ATOMSOLVGUI::InitATOMSOLVGen( SalomeApp_Application* app ) if ( !app ) myEngine = ATOMSOLV_ORB::ATOMSOLV_Gen::_nil(); else { + SALOME_NamingService_Abstract *ns = SalomeApp_Application::namingService(); 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 ) ); @@ -256,7 +260,7 @@ void ATOMSOLVGUI::OnRetrieveData() ATOMSOLV_ORB::ATOMSOLV_Gen_var engine = GetATOMSOLVGen(); SalomeApp_Application* app = getApp(); if ( !CORBA::is_nil( engine ) && app ) { - Engines::EngineComponent_var comp = app->lcc()->FindOrLoad_Component( "FactoryServerPy","ATOMGEN" ); + Engines::EngineComponent_var comp = app->lcc()->FindOrLoad_Component( "FactoryServer","ATOMGEN" ); ATOMGEN_ORB::ATOMGEN_Gen_var atomGen = ATOMGEN_ORB::ATOMGEN_Gen::_narrow( comp ); SalomeApp_Study* appStudy = dynamic_cast( app->activeStudy() ); if ( !CORBA::is_nil( atomGen ) && appStudy ) {