From 65a02200e3e2179a47b5ca435516a8fdc63ba530 Mon Sep 17 00:00:00 2001 From: bph Date: Thu, 7 Jul 2011 13:39:14 +0000 Subject: [PATCH] fixed: Document_impl new constructor --- src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.cxx | 3 ++- src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.cxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.cxx index 727d148..2dae39a 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.cxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.cxx @@ -46,6 +46,7 @@ HEXABLOCKPlugin_Hypothesis_i::HEXABLOCKPlugin_Hypothesis_i (PortableServer::POA_ myBaseImpl = new ::HEXABLOCKPlugin_Hypothesis (theGenImpl->GetANewId(), theStudyId, theGenImpl); + _poa = PortableServer::POA::_duplicate(thePOA); } //======================================================================= @@ -88,7 +89,7 @@ CORBA::Boolean HEXABLOCKPlugin_Hypothesis_i::IsDimSupported( SMESH::Dimension ty HEXABLOCK_ORB::Document_ptr HEXABLOCKPlugin_Hypothesis_i::GetDocument() { ASSERT(myBaseImpl); HEXA_NS::Document* d = this->GetImpl()->GetDocument(); - Document_impl* servantCorba = new Document_impl(d); + Document_impl* servantCorba = new Document_impl(_poa, d); HEXABLOCK_ORB::Document_ptr result = servantCorba->_this(); return result; } diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx index 394aac4..77e2b00 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx @@ -67,6 +67,10 @@ class HEXABLOCKPLUGIN_EXPORT HEXABLOCKPlugin_Hypothesis_i: // Verify whether hypothesis supports given entity type CORBA::Boolean IsDimSupported( SMESH::Dimension type ); + + private: + PortableServer::POA_var _poa;// POA reference + }; #endif -- 2.39.2