summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc/Gen.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-02-05 08:34:31 +0100
committerJose <jose@zeroc.com>2018-02-05 08:34:31 +0100
commit5b1531275cc5553cc728eecbfa91a89fcd9305b3 (patch)
tree2f98bbd478344806766d1322155ee5a4f5e2794b /cpp/src/slice2objc/Gen.cpp
parentFixes to support zeroc.icebuilder.msbuild tasks (diff)
parentFixed PHP array initialization in test proxy client (diff)
downloadice-5b1531275cc5553cc728eecbfa91a89fcd9305b3.tar.bz2
ice-5b1531275cc5553cc728eecbfa91a89fcd9305b3.tar.xz
ice-5b1531275cc5553cc728eecbfa91a89fcd9305b3.zip
Merge remote-tracking branch 'origin/3.7' into netcore
Diffstat (limited to 'cpp/src/slice2objc/Gen.cpp')
-rw-r--r--cpp/src/slice2objc/Gen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp
index 1c4b7e58943..55a587bb441 100644
--- a/cpp/src/slice2objc/Gen.cpp
+++ b/cpp/src/slice2objc/Gen.cpp
@@ -579,6 +579,10 @@ Slice::ObjCVisitor::getResponseCBSig(const OperationPtr& op) const
result += outTypeToString(type, (*q)->optional());
}
}
+ if(result.empty())
+ {
+ result = "void";
+ }
return "void(^)(" + result + ")";
}