X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTestContainer%2FTestContainer.cxx;h=938e49dcedfa0b0c00e363225f705a7333bc7c10;hb=2545c09242343820cec14e8f6b05bb246a7ebffd;hp=4deb36b376072e9dd7a79ff12b1d201e53844a78;hpb=718e0abe0126e5e53b3ba41fff1028efcf5bc887;p=modules%2Fkernel.git diff --git a/src/TestContainer/TestContainer.cxx b/src/TestContainer/TestContainer.cxx index 4deb36b37..938e49dce 100644 --- a/src/TestContainer/TestContainer.cxx +++ b/src/TestContainer/TestContainer.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 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 @@ -36,10 +36,10 @@ #include CORBA_CLIENT_HEADER(SALOME_TestComponent) #include "SALOME_NamingService.hxx" +#include "ArgvKeeper.hxx" #include "NamingService_WaitForServerReadiness.hxx" #include "Basics_Utils.hxx" -#include "Utils_ORB_INIT.hxx" -#include "Utils_SINGLETON.hxx" +#include "OpUtil.hxx" #include "Utils_SALOME_Exception.hxx" #include "Utils_CommException.hxx" @@ -72,7 +72,7 @@ Engines::TestComponent_ptr create_instance(Engines::Container_ptr iGenFact, iGenFact->load_component_Library(componenttName.c_str(),reason); #endif CORBA::string_free(reason); - CORBA::Object_var obj = iGenFact->create_component_instance(componenttName.c_str(), 0); + CORBA::Object_var obj = iGenFact->create_component_instance(componenttName.c_str()); Engines::TestComponent_var anInstance = Engines::TestComponent::_narrow(obj); MESSAGE("create anInstance"); SCRUTE(anInstance->instanceName()); @@ -82,8 +82,8 @@ Engines::TestComponent_ptr create_instance(Engines::Container_ptr iGenFact, int main (int argc, char * argv[]) { // Initializing omniORB - ORB_INIT &init = *SINGLETON_::Instance() ; - CORBA::ORB_ptr orb = init( argc , argv ) ; + SetArgcArgv( argc, argv ); + CORBA::ORB_ptr orb = KERNEL::GetRefToORB(); // LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb); try