Salome HOME
[EDF30399] : Steer directory hosting replay files
[modules/kernel.git] / src / Container / TestSalome_file.cxx
index 2195c489f4e05bd08f33a041fbf257c5cf417140..744d10957b913050d6999d66ae06b38bf79cac72 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -18,6 +18,8 @@
 //
 
 #include "Salome_file_i.hxx"
+#include "ArgvKeeper.hxx"
+#include "OpUtil.hxx"
 #include <iostream>
 #include <fstream>
 #include <sstream>
@@ -84,7 +86,8 @@ int main (int argc, char * argv[])
   print_state(state);
 
   // We start CORBA ...
-  CORBA::ORB_ptr orb = CORBA::ORB_init(argc , argv);
+  SetArgcArgv(argc, argv);
+  CORBA::ORB_ptr orb = KERNEL::GetRefToORB();
   obj = orb->resolve_initial_references("RootPOA");
   root_poa = PortableServer::POA::_narrow(obj);
   pman = root_poa->the_POAManager();