Salome HOME
bos #26457 Factorization of ORB initialization
[modules/kernel.git] / src / Launcher / SALOME_Launcher.cxx
index 7731aa97ad06af48ed5242dcb9135e84242141f0..9c2497f0e8b1f2ca17fcae56e5759af8b8273e73 100644 (file)
@@ -716,8 +716,7 @@ SALOME_Launcher *KERNEL::getLauncherSA()
 {
   if(!_launcher_singleton_ssl)
   {
-    int argc(0);
-    CORBA::ORB_var orb = CORBA::ORB_init(argc,nullptr);
+    CORBA::ORB_var orb = KERNEL::GetRefToORB();
     PortableServer::POA_var root_poa=PortableServer::POA::_the_root_poa();
     PortableServer::POAManager_var pman = root_poa->the_POAManager();
     CORBA::PolicyList policies;