diff options
author | Joe George <joe@zeroc.com> | 2019-03-19 11:18:27 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2019-03-19 11:18:27 -0400 |
commit | 831e19df636e45042e61347f8dd3e452cdefb6ef (patch) | |
tree | e5cbb6c0acd7dccce10f2cae506f2cf0f6b25bda /cpp/src/slice2swift/Gen.cpp | |
parent | Add labels to proxy return tuples (diff) | |
download | ice-831e19df636e45042e61347f8dd3e452cdefb6ef.tar.bz2 ice-831e19df636e45042e61347f8dd3e452cdefb6ef.tar.xz ice-831e19df636e45042e61347f8dd3e452cdefb6ef.zip |
Remove context from uncheckedCast
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r-- | cpp/src/slice2swift/Gen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp index 4afd58a87e7..31b05819d5f 100644 --- a/cpp/src/slice2swift/Gen.cpp +++ b/cpp/src/slice2swift/Gen.cpp @@ -860,10 +860,9 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p) out << nl << "public func uncheckedCast" << spar << ("prx: " + getUnqualified("Ice.ObjectPrx", swiftModule)) << ("type: " + prx + ".Protocol") - << ("facet: String? = nil") - << ("context: Context? = nil") << epar << " -> " << prx << "?"; + << ("facet: String? = nil") << epar << " -> " << prx << "?"; out << sb; - out << nl << "return " << prxI << ".uncheckedCast(prx: prx, facet: facet, context: context) as " << prxI << "?"; + out << nl << "return " << prxI << ".uncheckedCast(prx: prx, facet: facet) as " << prxI << "?"; out << eb; // |