summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/ObjCUtil.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2015-12-17 09:58:11 -0500
committerJoe George <joe@zeroc.com>2015-12-17 10:27:29 -0500
commit1ea2a111f3a0871b197e41750a0805d52b8eaa0a (patch)
treef181a7cfe3f835d4377b52bdeabebff3b6f97806 /cpp/src/Slice/ObjCUtil.cpp
parentC++11 mapping test updates (diff)
downloadice-1ea2a111f3a0871b197e41750a0805d52b8eaa0a.tar.bz2
ice-1ea2a111f3a0871b197e41750a0805d52b8eaa0a.tar.xz
ice-1ea2a111f3a0871b197e41750a0805d52b8eaa0a.zip
ICE-6897 - Python and Objective-C ValueFactory
- ValueFactory's are now functions/lambdas in Python and blocks in Objective-C
Diffstat (limited to 'cpp/src/Slice/ObjCUtil.cpp')
-rw-r--r--cpp/src/Slice/ObjCUtil.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Slice/ObjCUtil.cpp b/cpp/src/Slice/ObjCUtil.cpp
index cb156ea50be..5655b34139e 100644
--- a/cpp/src/Slice/ObjCUtil.cpp
+++ b/cpp/src/Slice/ObjCUtil.cpp
@@ -297,7 +297,11 @@ Slice::ObjCGenerator::typeToString(const TypePtr& type)
{
if(cl->isInterface())
{
- if(cl->isLocal())
+ if(cl->definition() && cl->definition()->isDelegate())
+ {
+ return fixName(cl);
+ }
+ else if(cl->isLocal())
{
return "id<" + fixName(cl) + ">";
}