summaryrefslogtreecommitdiff
path: root/cpp/src/Slice
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-10-12 17:20:05 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-10-12 17:20:05 +0200
commit62b1f9d4d8483e8637eb18a53922e889fa969e0a (patch)
tree1aa04372e6b8ce62d125253086453d308d9f2fbc /cpp/src/Slice
parentAdded entry for Windows bindist (diff)
downloadice-3.6.4-xcode9.tar.bz2
ice-3.6.4-xcode9.tar.xz
ice-3.6.4-xcode9.zip
Fixed generated code warnings showing up with Objective-C and Xcode 9.0 (ICE-8540)v3.6.4-xcode9
Diffstat (limited to 'cpp/src/Slice')
-rw-r--r--cpp/src/Slice/ObjCUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/ObjCUtil.cpp b/cpp/src/Slice/ObjCUtil.cpp
index e9001855f06..ab8dca7aa73 100644
--- a/cpp/src/Slice/ObjCUtil.cpp
+++ b/cpp/src/Slice/ObjCUtil.cpp
@@ -388,7 +388,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";
}