summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc/ObjCUtil.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-10-12 08:31:21 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-10-12 08:31:21 +0200
commitc0304fed7365d5086f9f08c145285a65375acb02 (patch)
tree04ac95367c7dabd6449b67ce7a50831a94a3277b /cpp/src/slice2objc/ObjCUtil.cpp
parentJavaScript testsuite improvements and simplifications (diff)
downloadice-c0304fed7365d5086f9f08c145285a65375acb02.tar.bz2
ice-c0304fed7365d5086f9f08c145285a65375acb02.tar.xz
ice-c0304fed7365d5086f9f08c145285a65375acb02.zip
Fixed generated code warnings showing up with Objective-C and Xcode 9.0 (ICE-8540)
Diffstat (limited to 'cpp/src/slice2objc/ObjCUtil.cpp')
-rw-r--r--cpp/src/slice2objc/ObjCUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2objc/ObjCUtil.cpp b/cpp/src/slice2objc/ObjCUtil.cpp
index 253519c837a..d5bf0e6d9c3 100644
--- a/cpp/src/slice2objc/ObjCUtil.cpp
+++ b/cpp/src/slice2objc/ObjCUtil.cpp
@@ -406,7 +406,7 @@ Slice::ObjCGenerator::outTypeToString(const TypePtr& type, bool optional, bool a
s += "*";
}
}
- if(autoreleasing && !isValueType(type))
+ if(autoreleasing && (!isValueType(type) || optional))
{
s += " ICE_AUTORELEASING_QUALIFIER";
}