From 7844d6f8ec82a5de83c5d08d5d696886b2f85874 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 21 Sep 2009 09:52:39 +0000 Subject: [PATCH] Fix missing functions if the WITHGENERICOBJ macro is undefined --- src/SALOMEDS/SALOMEDS_StudyManager_i.cxx | 2 ++ src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx index 0f2f93ac6..7a09d7a49 100644 --- a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx @@ -172,6 +172,8 @@ SALOMEDS::Study_ptr SALOMEDS_StudyManager_i::Open(const char* aUrl) CORBA::String_var IORStudy = _orb->object_to_string(Study); aStudyImpl->SetTransientReference((char*)IORStudy.in()); + _mapOfPOA[Study->StudyId()] = _poa; + // Register study in the naming service // Path to acces the study if(!_name_service->Change_Directory("/Study")) MESSAGE( "Unable to access the study directory" ) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx index ad85e1f2e..1c049a87f 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx @@ -77,6 +77,11 @@ void IORGenericObjIncref(const std::string& anIOR) { } } +#else +void IORGenericObjDecref(const std::string& anIOR) +{} +void IORGenericObjIncref(const std::string& anIOR) +{} #endif //======================================================================= -- 2.39.2