From 7c3666411ed7aa12323a62659e573cc8c71e9ff4 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 17 Aug 2021 16:41:06 +0200 Subject: [PATCH] WIP --- src/SALOMESDS/SALOMESDS_DataServerManager.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/SALOMESDS/SALOMESDS_DataServerManager.cxx b/src/SALOMESDS/SALOMESDS_DataServerManager.cxx index 55a6c0236..80ba9319e 100644 --- a/src/SALOMESDS/SALOMESDS_DataServerManager.cxx +++ b/src/SALOMESDS/SALOMESDS_DataServerManager.cxx @@ -123,7 +123,7 @@ CORBA::Boolean DataServerManager::isAliveAndKicking(const char *scopeName) } template -typename T::PtrType CreateDataScope(const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns) +typename T::PtrType CreateDataScope(CORBA::ORB_ptr orb, const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns) { int isTransactionInt(T::IsTransaction); if(std::find(scopes.begin(),scopes.end(),scopeName)!=scopes.end()) @@ -167,12 +167,12 @@ typename T::PtrType CreateDataScope(const std::string& scopeName, const std::vec } template -typename T::PtrType GiveADataScopeCalled(const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns, CORBA::Boolean& isCreated) +typename T::PtrType GiveADataScopeCalled(CORBA::ORB_ptr orb, const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns, CORBA::Boolean& isCreated) { if(std::find(scopes.begin(),scopes.end(),scopeName)==scopes.end()) { isCreated=true; - return CreateDataScope(scopeName,scopes,ns); + return CreateDataScope(orb,scopeName,scopes,ns); } else { @@ -195,7 +195,7 @@ typename T::PtrType GiveADataScopeCalled(const std::string& scopeName, const std std::string fullScopeName(SALOMESDS::DataServerManager::CreateAbsNameInNSFromScopeName(scopeName)); ns.Destroy_Name(fullScopeName.c_str()); isCreated=true; - return CreateDataScope(scopeName,scopes,ns); + return CreateDataScope(orb,scopeName,scopes,ns); } } } @@ -226,22 +226,22 @@ public: SALOME::DataScopeServer_ptr DataServerManager::createDataScope(const char *scopeName) { - return CreateDataScope(scopeName,listOfScopesCpp(),*_ns); + return CreateDataScope(_orb,scopeName,listOfScopesCpp(),*_ns); } SALOME::DataScopeServer_ptr DataServerManager::giveADataScopeCalled(const char *scopeName, CORBA::Boolean& isCreated) { - return GiveADataScopeCalled(scopeName,listOfScopesCpp(),*_ns,isCreated); + return GiveADataScopeCalled(_orb,scopeName,listOfScopesCpp(),*_ns,isCreated); } SALOME::DataScopeServerTransaction_ptr DataServerManager::createDataScopeTransaction(const char *scopeName) { - return CreateDataScope(scopeName,listOfScopesCpp(),*_ns); + return CreateDataScope(_orb,scopeName,listOfScopesCpp(),*_ns); } SALOME::DataScopeServerTransaction_ptr DataServerManager::giveADataScopeTransactionCalled(const char *scopeName, CORBA::Boolean& isCreated) { - return GiveADataScopeCalled(scopeName,listOfScopesCpp(),*_ns,isCreated); + return GiveADataScopeCalled(_orb,scopeName,listOfScopesCpp(),*_ns,isCreated); } SALOME::DataScopeServerBase_ptr DataServerManager::retriveDataScope(const char *scopeName) -- 2.39.2