summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index ef49c9f0eb5..b0f192d379a 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -414,12 +414,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;