diff options
author | Jose <jose@zeroc.com> | 2019-03-29 14:08:47 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-03-29 14:08:47 +0100 |
commit | 70f198e696ff32b0024e94743ed126c2b0113516 (patch) | |
tree | f0abd009d9e8a803c69312ff989e06b2d15db01d /cpp/src/slice2swift/Gen.cpp | |
parent | Set operation format type (diff) | |
download | ice-70f198e696ff32b0024e94743ed126c2b0113516.tar.bz2 ice-70f198e696ff32b0024e94743ed126c2b0113516.tar.xz ice-70f198e696ff32b0024e94743ed126c2b0113516.zip |
Missing ice_id override for Value types
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r-- | cpp/src/slice2swift/Gen.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp index a5c4063e08c..f0ba082ff6d 100644 --- a/cpp/src/slice2swift/Gen.cpp +++ b/cpp/src/slice2swift/Gen.cpp @@ -1051,8 +1051,12 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p) writeMemberwiseInitializer(out, members, baseMembers, allMembers, p, base == 0); out << sp; - out << nl << "override open class func ice_staticId() -> Swift.String"; - out << sb; + out << nl << "override open func ice_id() -> Swift.String" << sb; + out << nl << "return \"" << p->scoped() << "\""; + out << eb; + + out << sp; + out << nl << "override open class func ice_staticId() -> Swift.String" << sb; out << nl << "return \"" << p->scoped() << "\""; out << eb; @@ -1084,7 +1088,7 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p) out << nl << "override open func _iceWriteImpl(to ostr: " << getUnqualified("Ice.OutputStream", swiftModule) << ")"; out << sb; - out << nl << "ostr.startSlice(typeId: " << name << ".ice_staticId(), compactId:" << p->compactId() << ", last: " + 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) { |