Salome HOME
bos #26457 Factorization of ORB initialization
[modules/kernel.git] / src / KernelHelpers / SALOME_KernelORB.cxx
index ed8b9da78c65b4f47e6143b6f3d634733976da34..9a95ae21e53eb4fa97f59970b1d71a7d7355a306 100644 (file)
@@ -18,6 +18,7 @@
 //
 
 #include "SALOME_KernelORB.hxx"
+#include "OpUtil.hxx"
 
 namespace KERNEL {
   /**
@@ -28,8 +29,7 @@ namespace KERNEL {
   CORBA::ORB_ptr getORB() {
     static CORBA::ORB_ptr orb;
     if(CORBA::is_nil(orb)){
-      int argc=0;
-      orb = CORBA::ORB_init(argc,0);
+      orb = KERNEL::GetRefToORB();
     }
     return orb;
   }