diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-04-25 11:39:33 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-04-25 11:39:33 +0000 |
commit | ba75aa39dbf29eba02941fad2b4ac5c7d4b30a13 (patch) | |
tree | dc589a20f0160269661ee5e6669f894bd3c9add6 /cpp/src/slice2cpp | |
parent | changing IceUtil.Assert.Assert to IceUtil.Assert.FinalizerAssert (diff) | |
download | ice-ba75aa39dbf29eba02941fad2b4ac5c7d4b30a13.tar.bz2 ice-ba75aa39dbf29eba02941fad2b4ac5c7d4b30a13.tar.xz ice-ba75aa39dbf29eba02941fad2b4ac5c7d4b30a13.zip |
Fixed ice_name return type
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index b0f192d379a..b333d58b2d0 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 char* ice_name() const;"; + H << nl << "virtual const ::std::string ice_name() const;"; string flatName = p->flattenedScope() + p->name() + "_name"; C << sp << nl << "static const char* " << flatName << " = \"" << p->scoped().substr(2) << "\";"; - C << sp << nl << "const char*" << nl << scoped.substr(2) << "::ice_name() const"; + C << sp << nl << "const ::std::string" << nl << scoped.substr(2) << "::ice_name() const"; C << sb; C << nl << "return " << flatName << ';'; C << eb; |