]> SALOME platform Git repositories - plugins/hexablockplugin.git/commitdiff
Salome HOME
fixed:
authorbph <bph>
Thu, 7 Jul 2011 13:39:14 +0000 (13:39 +0000)
committerbph <bph>
Thu, 7 Jul 2011 13:39:14 +0000 (13:39 +0000)
   Document_impl new constructor

src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.cxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx

index 727d1480dea921a8caf2b81ac7c1088973e78c4e..2dae39adfb2322f55943ddbf1f07cb806f54d28d 100755 (executable)
@@ -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;
 }
index 394aac477ee05186f340201e14b057d658c0c0cd..77e2b000f4c447f7e5cbec91ffe803735893f3fe 100755 (executable)
@@ -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