summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-03-05 16:19:05 -0500
committerJoe George <joe@zeroc.com>2019-03-05 16:19:05 -0500
commita59dab7c70149f08dcfb3d7af7036439934cf97b (patch)
tree19ef98ab4296586cfe526b1c14fa0eb460420e9c /cpp/src/slice2swift/Gen.cpp
parentFix the build (diff)
downloadice-a59dab7c70149f08dcfb3d7af7036439934cf97b.tar.bz2
ice-a59dab7c70149f08dcfb3d7af7036439934cf97b.tar.xz
ice-a59dab7c70149f08dcfb3d7af7036439934cf97b.zip
More InputStream/OutputStream updates
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 9fe247af7aa..65fa3c9f2f0 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -602,15 +602,15 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p)
out << nl << "public extension " << getUnqualified("Ice.InputStream", swiftModule);
out << sb;
- out << nl << "func read(proxy: " << prx << ".Protocol) throws -> " << prx << "?";
+ out << nl << "func read() throws -> " << prx << "?";
out << sb;
- out << nl << "return try " << prxI << ".ice_read(from: self)";
+ out << nl << "return try read() as " << prxI << "?";
out << eb;
out << sp;
- out << nl << "func read(proxyArray: " << prx << ".Protocol) throws -> [" << prx << "?]";
+ out << nl << "func read(tag: Int32) throws -> " << prx << "?";
out << sb;
- out << nl << "return try read(proxyArray:" << prxI << ".self)";
+ out << nl << "return try read(tag: tag) as " << prxI << "?";
out << eb;
out << eb;