summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc/ObjCUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2objc/ObjCUtil.cpp')
-rw-r--r--cpp/src/slice2objc/ObjCUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2objc/ObjCUtil.cpp b/cpp/src/slice2objc/ObjCUtil.cpp
index 3cdb4da3107..253519c837a 100644
--- a/cpp/src/slice2objc/ObjCUtil.cpp
+++ b/cpp/src/slice2objc/ObjCUtil.cpp
@@ -871,11 +871,11 @@ Slice::ObjCGenerator::writeMarshalUnmarshalCode(Output &out, const TypePtr& type
{
if(autoreleased)
{
- out << nl << param << " = [" << name << " read:" << stream << " value:" << param << "];";
+ out << nl << "[" << name << " read:" << stream << " value:&" << param << "];";
}
else
{
- out << nl << param << " = [" << name << " readRetained:" << stream << " value:" << param << "];";
+ out << nl << "[" << name << " readRetained:" << stream << " value:&" << param << "];";
}
}
else