summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cppe
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cppe')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp4
-rw-r--r--cpp/src/slice2cppe/Main.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp
index 88f02188172..f8fbb446678 100644
--- a/cpp/src/slice2cppe/Gen.cpp
+++ b/cpp/src/slice2cppe/Gen.cpp
@@ -556,12 +556,12 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
C << eb;
}
- H << nl << "virtual const ::std::string ice_name() const;";
+ H << nl << "virtual ::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 ::std::string" << nl << scoped.substr(2) << "::ice_name() const";
+ C << sp << nl << "::std::string" << nl << scoped.substr(2) << "::ice_name() const";
C << sb;
C << nl << "return " << flatName << ';';
C << eb;
diff --git a/cpp/src/slice2cppe/Main.cpp b/cpp/src/slice2cppe/Main.cpp
index 895b201ad9d..5e77f298d84 100644
--- a/cpp/src/slice2cppe/Main.cpp
+++ b/cpp/src/slice2cppe/Main.cpp
@@ -80,7 +80,7 @@ main(int argc, char* argv[])
{
args = opts.parse(argc, (const char**)argv);
}
- catch(const IceUtil::Options::BadOpt& e)
+ catch(const IceUtil::BadOptException& e)
{
cerr << argv[0] << ": " << e.reason << endl;
usage(argv[0]);