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 ceaacf73b9f..a55c58a810c 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -1563,7 +1563,7 @@ Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
out << sb;
out << nl << "public let servant: " << servant;
- out << nl << "private static let defaultObjectImpl = " << getUnqualified("Ice.DefaultObjectImpl", swiftModule)
+ out << nl << "private static let defaultObject = " << getUnqualified("Ice.ObjectI", swiftModule)
<< "<" << traits << ">()";
out << sp;
@@ -1604,7 +1604,7 @@ Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
out.inc();
if(opName == "ice_id" || opName == "ice_ids" || opName == "ice_isA" || opName == "ice_ping")
{
- out << nl << "try (servant as? Object ?? " << disp << ".defaultObjectImpl)._iceD_"
+ out << nl << "try (servant as? Object ?? " << disp << ".defaultObject)._iceD_"
<< opName << "(incoming: inS, current: current)";
}
else