summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-03-01 16:05:21 +0100
committerJose <jose@zeroc.com>2019-03-01 16:05:21 +0100
commit611266cabeebbcafdbab1597b6d0ea29ab1e21ac (patch)
treece008e3c684a567f92fdc9c41c87c0e38fff8089 /cpp/src/slice2swift/Gen.cpp
parentRemove unused test file (diff)
downloadice-611266cabeebbcafdbab1597b6d0ea29ab1e21ac.tar.bz2
ice-611266cabeebbcafdbab1597b6d0ea29ab1e21ac.tar.xz
ice-611266cabeebbcafdbab1597b6d0ea29ab1e21ac.zip
Fix proxy class names
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 47076143364..d38a28dd435 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -511,9 +511,9 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p)
}
const string swiftModule = getSwiftModule(getTopLevelModule(ContainedPtr::dynamicCast(p)));
-
- const string prx = p->name() + "Prx";
- const string prxI = "_" + p->name() + "PrxI";
+ const string name = getUnqualified(getAbsolute(p), swiftModule);
+ const string prx = name + "Prx";
+ const string prxI = "_" + name + "PrxI";
out << nl << "public protocol " << prx << ": "
<< (baseClass ? fixIdent(baseClass->name()) : getUnqualified("Ice.ObjectPrx", swiftModule));