Salome HOME
bos #26457 Factorization of ORB initialization
[modules/kernel.git] / src / ParallelContainer / SALOME_ParallelContainerProxyDummy.cxx
index 221678c4db704edabea8dc15d7037fb05831af0b..9d6901b757c056cb9e5ba398f2f09ffa5bea1d18 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -22,7 +22,7 @@
 
 //  SALOME ParallelContainerProxyDummy : Proxy of a PaCO++ object using Dummy
 //  File   : SALOME_ParallelContainerProxyDummy.cxx
-//  Author : André Ribes, EDF
+//  Author : Andr Ribes, EDF
 //  Module : SALOME PARALLEL
 //
 #include <iostream>
@@ -44,9 +44,8 @@
 #include "SALOME_NamingService.hxx"
 
 #include "utilities.h"
+#include "ArgvKeeper.hxx"
 #include "Basics_Utils.hxx"
-#include "Utils_ORB_INIT.hxx"
-#include "Utils_SINGLETON.hxx"
 #include "SALOMETraceCollector.hxx"
 #include "OpUtil.hxx"
 
@@ -73,7 +72,8 @@ int main(int argc, char* argv[])
   signal(SIGSEGV, handler);
 #endif
   // Initialise the ORB.
-  CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
+  SetArgcArgv(argc, argv);
+  CORBA::ORB_var orb = KERNEL::GetRefToORB();
   KERNEL_PYTHON::init_python(argc,argv);
 
   std::string containerName("");