diff options
author | Joe George <joe@zeroc.com> | 2019-03-18 14:50:00 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2019-03-18 14:50:00 -0400 |
commit | 9bc11cb423c0bc873fe115f861b540f4eac8275f (patch) | |
tree | d5005c9465bfbfcddbc19fd20860909cd166f1f2 /cpp/src/slice2swift/SwiftUtil.cpp | |
parent | Add ice_staticId and fix proxy unmarshaling func label (diff) | |
download | ice-9bc11cb423c0bc873fe115f861b540f4eac8275f.tar.bz2 ice-9bc11cb423c0bc873fe115f861b540f4eac8275f.tar.xz ice-9bc11cb423c0bc873fe115f861b540f4eac8275f.zip |
Add labels to proxy return tuples
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r-- | cpp/src/slice2swift/SwiftUtil.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 1f7db4c4980..67e4b8dd9f3 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -1212,12 +1212,21 @@ SwiftGenerator::writeProxyOperation(::IceUtilInternal::Output& out, const Operat out << spar; if(returnType) { - out << typeToString(returnType, op); + string returnValueS = "returnValue"; + + for(ParamDeclList::iterator q = outParams.begin(); q != outParams.end(); ++q) + { + if((*q)->name() == "returnValue") + { + returnValueS = "_returnValue"; + } + } + out << (returnValueS + ": " + typeToString(returnType, op)); } for(ParamDeclList::const_iterator q = outParams.begin(); q != outParams.end(); ++q) { ParamDeclPtr param = *q; - out << typeToString(param->type(), param, param->getMetaData(), param->optional()); + out << (param->name() + ": " + typeToString(param->type(), param, param->getMetaData(), param->optional())); } out << epar; } |