X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FKernelHelpers%2FSALOME_KernelORB.cxx;h=255cffcdcc1ef4ecc0fb3e61a9c43b0082a8a907;hb=e5ef0ddb7e1f5d308f03a3a7f3cba7a187a2ddaa;hp=ed8b9da78c65b4f47e6143b6f3d634733976da34;hpb=888f04cad3e3fa57bf92c96789959fc87bfdd555;p=modules%2Fkernel.git diff --git a/src/KernelHelpers/SALOME_KernelORB.cxx b/src/KernelHelpers/SALOME_KernelORB.cxx index ed8b9da78..255cffcdc 100644 --- a/src/KernelHelpers/SALOME_KernelORB.cxx +++ b/src/KernelHelpers/SALOME_KernelORB.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2021 CEA/DEN, EDF R&D +// Copyright (C) 2021-2022 CEA/DEN, EDF R&D // // 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,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; }