diff options
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; |