]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Improve loading mechanism of VISU module
authorsmh <smh@opencascade.com>
Thu, 22 Apr 2004 12:23:32 +0000 (12:23 +0000)
committersmh <smh@opencascade.com>
Thu, 22 Apr 2004 12:23:32 +0000 (12:23 +0000)
src/Session/SALOME_Session_i.cxx

index ba5eecf39a276ab49d8c6d8eb96e13937492a44c..89002812778d13903f45145f887d4affe473bb1b 100644 (file)
@@ -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();
 }