X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FContainer%2FTestSalome_file.cxx;h=744d10957b913050d6999d66ae06b38bf79cac72;hb=3ce0546302001755828c8476425a60c6ab61ac92;hp=2195c489f4e05bd08f33a041fbf257c5cf417140;hpb=77773aa5efd0d400ad59025b9c4ec050d593c0dd;p=modules%2Fkernel.git diff --git a/src/Container/TestSalome_file.cxx b/src/Container/TestSalome_file.cxx index 2195c489f..744d10957 100644 --- a/src/Container/TestSalome_file.cxx +++ b/src/Container/TestSalome_file.cxx @@ -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 #include #include @@ -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();