summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Slice/ObjCUtil.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Slice/ObjCUtil.cpp b/cpp/src/Slice/ObjCUtil.cpp
index 77a4a9af86c..4a542d58b96 100644
--- a/cpp/src/Slice/ObjCUtil.cpp
+++ b/cpp/src/Slice/ObjCUtil.cpp
@@ -1009,11 +1009,11 @@ Slice::ObjCGenerator::writeOptParamMarshalUnmarshalCode(Output &out, const TypeP
out << nl;
if(marshal)
{
- out << "[" << helper << " writeOpt:" << param << " stream:os_ tag:" << tag << "];";
+ out << "[" << helper << " writeOptional:" << param << " stream:os_ tag:" << tag << "];";
}
else
{
- out << "[" << helper << " readOpt:&" << param << " stream:is_ tag:" << tag << "];";
+ out << "[" << helper << " readOptional:&" << param << " stream:is_ tag:" << tag << "];";
}
return;
}
@@ -1021,11 +1021,11 @@ Slice::ObjCGenerator::writeOptParamMarshalUnmarshalCode(Output &out, const TypeP
out << nl;
if(marshal)
{
- out << "[" << helper << " writeOpt:" << param << " stream:os_ tag:" << tag << "];";
+ out << "[" << helper << " writeOptional:" << param << " stream:os_ tag:" << tag << "];";
}
else
{
- out << param << " = [" << helper << " readOpt:is_ tag:" << tag << "];";
+ out << param << " = [" << helper << " readOptional:is_ tag:" << tag << "];";
}
}