diff options
author | Jose <jose@zeroc.com> | 2019-05-02 19:54:46 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-05-02 20:01:07 +0200 |
commit | 2a197796567ef0013aa263495097fbba4db50ade (patch) | |
tree | b15e4b5efc0e7bf73455fcfbff464d4ec4750114 /cpp/src/slice2swift/SwiftUtil.cpp | |
parent | Add MX prefix for IceMX (diff) | |
download | ice-2a197796567ef0013aa263495097fbba4db50ade.tar.bz2 ice-2a197796567ef0013aa263495097fbba4db50ade.tar.xz ice-2a197796567ef0013aa263495097fbba4db50ade.zip |
Fix for marshal/unmarshal generated code
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r-- | cpp/src/slice2swift/SwiftUtil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 1f8db1ddfa5..0a6a3b8cfbe 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -1098,11 +1098,11 @@ SwiftGenerator::writeMarshalUnmarshalCode(Output &out, string helper = getUnqualified(getAbsoluteImpl(ContainedPtr::dynamicCast(type)), swiftModule) + "Helper"; if(marshal) { - out << nl << helper <<".write(to: ostr, " << args << ")"; + out << nl << helper <<".write(to: " << stream << ", " << args << ")"; } else { - out << nl << param << " = try " << helper << ".read(from: istr"; + out << nl << param << " = try " << helper << ".read(from: " << stream; if(!args.empty()) { out << ", " << args; @@ -1118,11 +1118,11 @@ SwiftGenerator::writeMarshalUnmarshalCode(Output &out, string helper = getUnqualified(getAbsoluteImpl(ContainedPtr::dynamicCast(type)), swiftModule) + "Helper"; if(marshal) { - out << nl << helper <<".write(to: ostr, " << args << ")"; + out << nl << helper <<".write(to: " << stream << ", " << args << ")"; } else { - out << nl << param << " = try " << helper << ".read(from: istr"; + out << nl << param << " = try " << helper << ".read(from: " << stream; if(!args.empty()) { out << ", " << args; |