From cb56f5738d713d7f2ecb40b5925ce66b2aee734b Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 19 Oct 2021 15:40:12 +0300 Subject: [PATCH] bos #26457 Factorization of ORB initialization --- src/HOMARDGUI/HOMARDGUI.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/HOMARDGUI/HOMARDGUI.cxx b/src/HOMARDGUI/HOMARDGUI.cxx index 480dff24..a0759a26 100644 --- a/src/HOMARDGUI/HOMARDGUI.cxx +++ b/src/HOMARDGUI/HOMARDGUI.cxx @@ -24,8 +24,7 @@ #include "HOMARDGUI.h" // SALOME Includes -#include "Utils_ORB_INIT.hxx" -#include "Utils_SINGLETON.hxx" +#include "OpUtil.hxx" #include "SALOME_LifeCycleCORBA.hxx" #include "SUIT_ResourceMgr.h" @@ -721,9 +720,7 @@ void HOMARDGUI::setOrb() { try { - ORB_INIT &init = *SINGLETON_::Instance(); - ASSERT(SINGLETON_::IsAlreadyExisting()); - _orb = init( 0 , 0 ); + _orb = KERNEL::GetRefToORB(); } catch (...) { -- 2.39.2