From 84d390a56fddaeef64cde22af96754ddfaffa705 Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 10 Oct 2008 10:18:33 +0000 Subject: [PATCH] Fix compilation errors after merging KERNEL module from V4_1_0_maintainance branch --- src/Session/Session_ServerCheck.cxx | 8 ++++---- src/Session/Session_ServerThread.cxx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Session/Session_ServerCheck.cxx b/src/Session/Session_ServerCheck.cxx index 27535f84f..c2c0141cf 100644 --- a/src/Session/Session_ServerCheck.cxx +++ b/src/Session/Session_ServerCheck.cxx @@ -32,7 +32,7 @@ #include "Utils_ORB_INIT.hxx" #include "Utils_SINGLETON.hxx" #include "SALOME_NamingService.hxx" -#include "OpUtil.hxx" +#include "Basics_Utils.hxx" #include "utilities.h" #include @@ -484,7 +484,7 @@ void Session_ServerCheck::run() SALOME_NamingService &NS = *SINGLETON_::Instance(); ASSERT( SINGLETON_::IsAlreadyExisting() ); NS.init_orb( orb ); - QString containerName = QString( "/Containers/%1/FactoryServer" ).arg( GetHostname().c_str() ); + QString containerName = QString( "/Containers/%1/FactoryServer" ).arg( Kernel_Utils::GetHostname().c_str() ); CORBA::Object_var obj = NS.Resolve( containerName.toLatin1() ); Engines::Container_var FScontainer = Engines::Container::_narrow( obj ); if ( !CORBA::is_nil( FScontainer ) ) { @@ -535,7 +535,7 @@ void Session_ServerCheck::run() SALOME_NamingService &NS = *SINGLETON_::Instance(); ASSERT( SINGLETON_::IsAlreadyExisting() ); NS.init_orb( orb ); - QString containerName = QString( "/Containers/%1/FactoryServerPy" ).arg( GetHostname().c_str() ); + QString containerName = QString( "/Containers/%1/FactoryServerPy" ).arg( Kernel_Utils::GetHostname().c_str() ); CORBA::Object_var obj = NS.Resolve( containerName.toLatin1() ); Engines::Container_var FSPcontainer = Engines::Container::_narrow( obj ); if ( !CORBA::is_nil( FSPcontainer ) ) { @@ -586,7 +586,7 @@ void Session_ServerCheck::run() SALOME_NamingService &NS = *SINGLETON_::Instance(); ASSERT( SINGLETON_::IsAlreadyExisting() ); NS.init_orb( orb ); - QString containerName = QString( "/Containers/%1/SuperVisionContainer" ).arg( GetHostname().c_str() ); + QString containerName = QString( "/Containers/%1/SuperVisionContainer" ).arg( Kernel_Utils::GetHostname().c_str() ); CORBA::Object_var obj = NS.Resolve( containerName.toLatin1() ); Engines::Container_var SVcontainer = Engines::Container::_narrow( obj ); if ( !CORBA::is_nil( SVcontainer ) ) { diff --git a/src/Session/Session_ServerThread.cxx b/src/Session/Session_ServerThread.cxx index 45bba979c..cf4fc2360 100755 --- a/src/Session/Session_ServerThread.cxx +++ b/src/Session/Session_ServerThread.cxx @@ -45,7 +45,7 @@ #include #include #include -#include +#include #include #include @@ -153,7 +153,7 @@ void Session_ServerThread::Init() { NamingService_WaitForServerReadiness(_NS,"/myStudyManager"); string containerName = "/Containers/"; - containerName = containerName + GetHostname(); + containerName = containerName + Kernel_Utils::GetHostname(); containerName = containerName + "/FactoryServer"; NamingService_WaitForServerReadiness(_NS,containerName); ActivateSession(_argc, _argv); -- 2.39.2