From ee1229fae13c0fd8bcb19159e77204c5a8e29070 Mon Sep 17 00:00:00 2001 From: smh Date: Thu, 22 Apr 2004 12:23:32 +0000 Subject: [PATCH] Improve loading mechanism of VISU module --- src/Session/SALOME_Session_i.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Session/SALOME_Session_i.cxx b/src/Session/SALOME_Session_i.cxx index ba5eecf39..890028127 100644 --- a/src/Session/SALOME_Session_i.cxx +++ b/src/Session/SALOME_Session_i.cxx @@ -69,13 +69,13 @@ SALOME_Session_i::SALOME_Session_i(int argc, char ** argv, CORBA::ORB_ptr orb, P Engines::Component_ptr SALOME_Session_i::GetVisuComponent() { MESSAGE("SALOME_Session_i::GetVisuGen"); - typedef Engines::Component_ptr VisuGen(CORBA::ORB_ptr, + typedef Engines::Component_ptr TGetImpl(CORBA::ORB_ptr, PortableServer::POA_ptr, SALOME_NamingService*,QMutex*); - OSD_SharedLibrary visuSharedLibrary("libVISUEngine.so"); - if(visuSharedLibrary.DlOpen(OSD_RTLD_LAZY)) - if(OSD_Function osdFun = visuSharedLibrary.DlSymb("GetVisuGen")) - return ((VisuGen (*)) osdFun)(_orb,_poa,_NS,_GUIMutex); + OSD_SharedLibrary aSharedLibrary("libVISUEngineImpl.so"); + if(aSharedLibrary.DlOpen(OSD_RTLD_LAZY)) + if(OSD_Function anOSDFun = aSharedLibrary.DlSymb("GetImpl")) + return ((TGetImpl (*)) anOSDFun)(_orb,_poa,_NS,_GUIMutex); return Engines::Component::_nil(); } -- 2.39.2