summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cppe/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-04-22 18:46:33 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-04-22 18:46:33 +0000
commit5a418360a853a7a38fda24e82a6e0ae66f3dd12b (patch)
treef8f1c4cff91d9db6572a0e5ab97e00ad8ff4c91b /cpp/src/slice2cppe/Gen.cpp
parentRemoved a few more exceptions (diff)
downloadice-5a418360a853a7a38fda24e82a6e0ae66f3dd12b.tar.bz2
ice-5a418360a853a7a38fda24e82a6e0ae66f3dd12b.tar.xz
ice-5a418360a853a7a38fda24e82a6e0ae66f3dd12b.zip
Changed ice_name() to return const char*
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp
index 7ae59041205..196a98f0b62 100644
--- a/cpp/src/slice2cppe/Gen.cpp
+++ b/cpp/src/slice2cppe/Gen.cpp
@@ -349,12 +349,12 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
C << eb;
}
- H << nl << "virtual const ::std::string& ice_name() const;";
+ H << nl << "virtual const char* ice_name() const;";
string flatName = p->flattenedScope() + p->name() + "_name";
- C << sp << nl << "static const ::std::string " << flatName << " = \"" << p->scoped().substr(2) << "\";";
- C << sp << nl << "const ::std::string&" << nl << scoped.substr(2) << "::ice_name() const";
+ C << sp << nl << "static const char* " << flatName << " = \"" << p->scoped().substr(2) << "\";";
+ C << sp << nl << "const char*" << nl << scoped.substr(2) << "::ice_name() const";
C << sb;
C << nl << "return " << flatName << ';';
C << eb;