summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc/Gen.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-01-19 16:27:53 +0100
committerJose <jose@zeroc.com>2016-01-19 16:27:53 +0100
commit6faa017414ad0321fd28da58ab5d3c851ec7f1f2 (patch)
treee9e9146105ffc5c23edd72b38d02442ba1fe2bbd /cpp/src/slice2objc/Gen.cpp
parentFix IEE-162 - multiple bluetooth test failures (diff)
downloadice-6faa017414ad0321fd28da58ab5d3c851ec7f1f2.tar.bz2
ice-6faa017414ad0321fd28da58ab5d3c851ec7f1f2.tar.xz
ice-6faa017414ad0321fd28da58ab5d3c851ec7f1f2.zip
Deprecate ice_name and add ice_id
Diffstat (limited to 'cpp/src/slice2objc/Gen.cpp')
-rw-r--r--cpp/src/slice2objc/Gen.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp
index f31146e05ab..6455d87a4ce 100644
--- a/cpp/src/slice2objc/Gen.cpp
+++ b/cpp/src/slice2objc/Gen.cpp
@@ -1291,6 +1291,15 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p)
_M << nl << "return @\"" << p->scoped().substr(2) << "\";";
_M << eb;
+ //
+ // ice_id
+ //
+ _H << nl << "-(NSString *) ice_id;";
+ _M << sp << nl << "-(NSString *) ice_id";
+ _M << sb;
+ _M << nl << "return @\"" << p->scoped() << "\";";
+ _M << eb;
+
ContainerType ct = p->isLocal() ? LocalException : Other;
writeInit(p, dataMembers, baseDataMembers, allDataMembers, requiresMemberInit(dataMembers), BaseTypeException, ct);
writeFactory(p, allDataMembers, BaseTypeException, ct);
@@ -3089,7 +3098,7 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p)
_M << sb;
_M << nl << "[is_ endEncapsulation];";
_M << nl << "@throw [ICEUnknownUserException unknownUserException:__FILE__ line:__LINE__ "
- << "unknown:[ex_ ice_name]];";
+ << "unknown:[ex_ ice_id]];";
_M << eb;
_M << eb;