summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-08-31 04:36:28 +0000
committerMichi Henning <michi@zeroc.com>2004-08-31 04:36:28 +0000
commitb48723e3d4ba8b7d3626c052ff398697731370a2 (patch)
treec038aa8cea773a7ae45dc511ea5548730801884b /cpp/src/slice2cpp/Gen.cpp
parentinitial check-in (diff)
downloadice-b48723e3d4ba8b7d3626c052ff398697731370a2.tar.bz2
ice-b48723e3d4ba8b7d3626c052ff398697731370a2.tar.xz
ice-b48723e3d4ba8b7d3626c052ff398697731370a2.zip
Deprecation of global Slice definitions.
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 24f07363326..1ad5b03a644 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -401,7 +401,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
C << sp << nl << "const ::std::string " << scoped.substr(2) << "::_name = \"" << p->scoped().substr(2) << "\";";
C << sp << nl << "const ::std::string&" << nl << scoped.substr(2) << "::ice_name() const";
C << sb;
- C << nl << "return " << scoped.substr(2) << "::_name;";
+ C << nl << "return " << scoped << "::_name;";
C << eb;
if(p->isLocal())
@@ -426,7 +426,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
H << sp << nl << "static const ::IceInternal::UserExceptionFactoryPtr& ice_factory();";
C << sp << nl << "const ::IceInternal::UserExceptionFactoryPtr&";
- C << nl << scoped.substr(2) << "::ice_factory()";
+ C << nl << scoped << "::ice_factory()";
C << sb;
C << nl << "return _factory;";
C << eb;