diff options
author | Joe George <joe@zeroc.com> | 2019-04-08 10:33:34 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2019-04-08 10:33:34 -0400 |
commit | 7e15d842a6f9fb353de8144bc36590c91d0abe27 (patch) | |
tree | 0453dbd8c0a0c415e05a03dee4d912552ed93f8a /cpp/src/slice2swift/Gen.cpp | |
parent | Fix xcode project (diff) | |
download | ice-7e15d842a6f9fb353de8144bc36590c91d0abe27.tar.bz2 ice-7e15d842a6f9fb353de8144bc36590c91d0abe27.tar.xz ice-7e15d842a6f9fb353de8144bc36590c91d0abe27.zip |
Multiple fixes
- Remove --list-generated
- Fix uncheckedCast to not return an optional
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r-- | cpp/src/slice2swift/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp index c11e1cf55c1..be173732f74 100644 --- a/cpp/src/slice2swift/Gen.cpp +++ b/cpp/src/slice2swift/Gen.cpp @@ -997,9 +997,9 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p) out << nl << "public func uncheckedCast" << spar << ("prx: " + getUnqualified("Ice.ObjectPrx", swiftModule)) << ("type: " + prx + ".Protocol") - << ("facet: String? = nil") << epar << " -> " << prx << "?"; + << ("facet: String? = nil") << epar << " -> " << prx; out << sb; - out << nl << "return " << prxI << ".uncheckedCast(prx: prx, facet: facet) as " << prxI << "?"; + out << nl << "return " << prxI << ".uncheckedCast(prx: prx, facet: facet) as " << prxI; out << eb; // |