summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp4
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;
//