From be035d8efa2e5085819f22a88d462b14b8746625 Mon Sep 17 00:00:00 2001 From: mnt Date: Tue, 19 Apr 2016 11:46:28 +0300 Subject: [PATCH] Remove dependency on GUI --- src/MEDCalc/cmp/MED.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/MEDCalc/cmp/MED.cxx b/src/MEDCalc/cmp/MED.cxx index c89b152ad..8a69c612f 100644 --- a/src/MEDCalc/cmp/MED.cxx +++ b/src/MEDCalc/cmp/MED.cxx @@ -26,7 +26,8 @@ #include #include -#include +#include +#include #include #include @@ -252,8 +253,8 @@ MED::hasObjectInfo() char* MED::getObjectInfo(CORBA::Long studyId, const char* entry) { - SALOME_NamingService* nameService = SalomeApp_Application::namingService(); - CORBA::Object_var aSMObject = nameService->Resolve( "/myStudyManager" ); + SALOME_LifeCycleCORBA lcc; + CORBA::Object_var aSMObject = lcc.namingService()->Resolve( "/myStudyManager" ); SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow( aSMObject ); SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID( studyId ); SALOMEDS::SObject_var aSObj = aStudy->FindObjectID( entry ); -- 2.39.2