diff options
author | Bernard Normier <bernard@zeroc.com> | 2019-05-09 16:45:40 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2019-05-09 16:45:40 -0400 |
commit | 72c962c5902d92c7826a4d916048780957d84e7d (patch) | |
tree | 7b68a38a4187a83a394c5acb8e83f45db7c09b91 /cpp/src/slice2swift/SwiftUtil.cpp | |
parent | Added doc for ice_ping (diff) | |
download | ice-72c962c5902d92c7826a4d916048780957d84e7d.tar.bz2 ice-72c962c5902d92c7826a4d916048780957d84e7d.tar.xz ice-72c962c5902d92c7826a4d916048780957d84e7d.zip |
Make sent closure a trailing closure
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r-- | cpp/src/slice2swift/SwiftUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 38b7fc9340b..5623ddea445 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -1853,9 +1853,9 @@ SwiftGenerator::writeProxyAsyncOperation(::IceUtilInternal::Output& out, const O } } out << "context: " + getUnqualified("Ice.Context", swiftModule) + "? = nil"; - out << "sent: ((Swift.Bool) -> Swift.Void)? = nil"; out << "sentOn: Dispatch.DispatchQueue? = PromiseKit.conf.Q.return"; out << "sentFlags: Dispatch.DispatchWorkItemFlags? = nil"; + out << "sent: ((Swift.Bool) -> Swift.Void)? = nil"; out << epar; out << " -> PromiseKit.Promise<"; @@ -1909,9 +1909,9 @@ SwiftGenerator::writeProxyAsyncOperation(::IceUtilInternal::Output& out, const O } out << nl << "context: context,"; - out << nl << "sent: sent,"; out << nl << "sentOn: sentOn,"; - out << nl << "sentFlags: sentFlags)"; + out << nl << "sentFlags: sentFlags,"; + out << nl << "sent: sent)"; out.restoreIndent(); out << eb; |