From e706fb2ceb23b1ee3c225f6d9569c58359b4ee72 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 5 Jul 2017 12:10:49 +0200 Subject: Fixed ICE-8217 - added ice_getSlicedData method to Ice values and Ice::SlicedData::clear method to break cyclic references --- cpp/src/slice2objc/Gen.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src/slice2objc/Gen.cpp') diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp index 17a91efac8e..3aba530c16b 100644 --- a/cpp/src/slice2objc/Gen.cpp +++ b/cpp/src/slice2objc/Gen.cpp @@ -1155,6 +1155,11 @@ Slice::Gen::TypesVisitor::visitClassDefEnd(const ClassDefPtr& p) if(preserved && !basePreserved) { + _M << nl << "-(id) ice_getSlicedData"; + _M << sb; + _M << nl << "return iceSlicedData_;"; + _M << eb; + _M << nl << "-(void) iceWrite:(id)ostr"; _M << sb; _M << nl << "[ostr startValue:iceSlicedData_];"; -- cgit v1.2.3