summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/SwiftUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r--cpp/src/slice2swift/SwiftUtil.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp
index bc41d2bfa13..fcf7b72bff0 100644
--- a/cpp/src/slice2swift/SwiftUtil.cpp
+++ b/cpp/src/slice2swift/SwiftUtil.cpp
@@ -688,9 +688,7 @@ SwiftGenerator::writeCastFuncs(IceUtilInternal::Output& out, const ClassDefPtr&
out << "func read(proxyArray: " << prx << ".Protocol) throws -> [" << prx << "?]";
out << sb << nl;
- // out << "return try " << prxImpl << ".ice_read(from: self)";
- out << "#warning(\"add generated proxy arrays\")" << nl;
- out << "preconditionFailure(\"TODO\")";
+ out << "return try read(proxyArray: " << prxImpl << ".self)";
out << eb << nl;
out << eb << nl;
}
@@ -728,11 +726,11 @@ SwiftGenerator::writeMarshalUnmarshalCode(IceUtilInternal::Output& out, const Cl
const SequencePtr sequence = SequencePtr::dynamicCast(op->returnType());
if(isProxyType((*q)->type()))
{
- out << nl << "os.write(proxy: " << (*q)->name() << ")";
+ out << nl << "try os.write(proxy: " << (*q)->name() << ")";
}
else if(sequence && isProxyType(sequence->type()))
{
- out << nl << "os.write(proxyArray: " << (*q)->name() << ")";
+ out << nl << "try os.write(proxyArray: " << (*q)->name() << ")";
}
else
{