diff options
author | Jose <jose@zeroc.com> | 2019-03-09 00:04:10 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-03-09 00:04:10 +0100 |
commit | 3216f7ccb5db99204523a1dd9f2ff09b49fbac35 (patch) | |
tree | ba439fc2a90e862a17a55a089c19a8b13379e69a /cpp/src/slice2swift/Gen.cpp | |
parent | Marshalling fixes (diff) | |
download | ice-3216f7ccb5db99204523a1dd9f2ff09b49fbac35.tar.bz2 ice-3216f7ccb5db99204523a1dd9f2ff09b49fbac35.tar.xz ice-3216f7ccb5db99204523a1dd9f2ff09b49fbac35.zip |
Value marshalling fixes
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r-- | cpp/src/slice2swift/Gen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp index 9b44c07f1fb..d3d05567e8e 100644 --- a/cpp/src/slice2swift/Gen.cpp +++ b/cpp/src/slice2swift/Gen.cpp @@ -896,7 +896,8 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p) } out << "public func _iceWriteImpl(to ostr: " << getUnqualified("Ice.OutputStream", swiftModule) << ")"; out << sb; - out << nl << "// to.startSlice(ice_staticId(), " << p->compactId() << (!base ? ", true" : ", false") << ");"; + out << nl << "ostr.startSlice(typeId: " << name << ".ice_staticId(), compactId:" << p->compactId() << ", last: " + << (!base ? "true" : "false") << ")"; for(DataMemberList::const_iterator i = members.begin(); i != members.end(); ++i) { DataMemberPtr member = *i; @@ -910,7 +911,7 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p) { writeMarshalUnmarshalCode(out, *d, p, false, false, true, (*d)->tag()); } - out << nl << "// to.endSlice();"; + out << nl << "ostr.endSlice()"; if(base) { out << nl << "super._iceWriteImpl(to: ostr);"; |