summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-04-05 14:08:16 +0200
committerJose <jose@zeroc.com>2019-04-05 14:10:37 +0200
commit2598428a99fac24185acb1bdffcfc6b2b4db3ada (patch)
treec3bf93c5ca93d8329c18b04b7ea2e4a17b094279 /cpp/src/slice2swift/Gen.cpp
parentAdd setAdapter/getAdapter to Connection (diff)
downloadice-2598428a99fac24185acb1bdffcfc6b2b4db3ada.tar.bz2
ice-2598428a99fac24185acb1bdffcfc6b2b4db3ada.tar.xz
ice-2598428a99fac24185acb1bdffcfc6b2b4db3ada.zip
Fix for unmsarshal of exception with optional data members
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 4a63d087ab5..6bb91f325d2 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -415,7 +415,7 @@ Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
out << nl << "_ = try istr.startSlice()";
for(DataMemberList::const_iterator i = members.begin(); i != members.end(); ++i)
{
- writeMarshalUnmarshalCode(out, (*i)->type(), p, "self." + fixIdent((*i)->name()), false);
+ writeMarshalUnmarshalCode(out, (*i)->type(), p, "self." + fixIdent((*i)->name()), false, (*i)->tag());
}
out << nl << "try istr.endSlice()";
if(base)