From: mnt Date: Tue, 19 Apr 2016 08:46:28 +0000 (+0300) Subject: Remove dependency on GUI X-Git-Tag: V8_1_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=be035d8efa2e5085819f22a88d462b14b8746625;p=modules%2Fmed.git Remove dependency on GUI --- 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 );