From: Anthony Geay Date: Tue, 23 Feb 2021 14:16:10 +0000 (+0100) Subject: Duplication of code preventing SHAPER module to work in SSL mode X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c0f1e8dff09b62efcc339c01bac2604254ae063;p=modules%2Fgui.git Duplication of code preventing SHAPER module to work in SSL mode --- diff --git a/src/SalomeApp/SalomeApp_Engine_i.cxx b/src/SalomeApp/SalomeApp_Engine_i.cxx index 4f5a82f00..cc3742d7c 100644 --- a/src/SalomeApp/SalomeApp_Engine_i.cxx +++ b/src/SalomeApp/SalomeApp_Engine_i.cxx @@ -366,10 +366,9 @@ PortableServer::POA_var SalomeApp_Engine_i::poa() /*! \return */ -SALOME_NamingService* SalomeApp_Engine_i::namingService() +SALOME_NamingService_Abstract* SalomeApp_Engine_i::namingService() { - static SALOME_NamingService _ns(orb()); - return &_ns; + return SalomeApp_Application::namingService(); } /*! diff --git a/src/SalomeApp/SalomeApp_Engine_i.h b/src/SalomeApp/SalomeApp_Engine_i.h index 2b4137a52..9de78b810 100644 --- a/src/SalomeApp/SalomeApp_Engine_i.h +++ b/src/SalomeApp/SalomeApp_Engine_i.h @@ -38,7 +38,7 @@ #include #include CORBA_SERVER_HEADER(SalomeApp_Engine) -class SALOME_NamingService; +class SALOME_NamingService_Abstract; class SALOMEAPP_EXPORT SalomeApp_Engine_i: public POA_SalomeApp::Engine, public Engines_Component_i @@ -99,7 +99,7 @@ public: private: static CORBA::ORB_var orb(); static PortableServer::POA_var poa(); - static SALOME_NamingService* namingService(); + static SALOME_NamingService_Abstract* namingService(); private: MapOfFiles myListOfFiles; bool myKeepFiles;