Commit ef56aa25 authored by Murray Cumming's avatar Murray Cumming

C++11: Replace throw() with noexcept.

parent f6440cff
......@@ -44,8 +44,8 @@ class fail_exception : public std::exception
{
public:
fail_exception(const std::string& msg) : msg_(msg) {}
~fail_exception() throw() override {}
const char* what() const throw() override { return msg_.c_str(); }
~fail_exception() noexcept override {}
const char* what() const noexcept override { return msg_.c_str(); }
private:
std::string msg_;
......
......@@ -28,7 +28,7 @@ class MyException: public xmlpp::exception
{
public:
MyException();
~MyException() throw() override;
~MyException() noexcept override;
void Raise() const override;
xmlpp::exception * Clone() const override;
};
......
......@@ -9,10 +9,10 @@ exception::exception(const Glib::ustring& message)
{
}
exception::~exception() throw()
exception::~exception() noexcept
{}
const char* exception::what() const throw()
const char* exception::what() const noexcept
{
return message_.c_str();
}
......
......@@ -41,9 +41,9 @@ class LIBXMLPP_API exception: public std::exception
{
public:
explicit exception(const Glib::ustring& message);
~exception() throw() override;
~exception() noexcept override;
const char* what() const throw() override;
const char* what() const noexcept override;
//TODO: Use lower-case names when we can break ABI?
virtual void Raise() const;
......
......@@ -8,7 +8,7 @@ internal_error::internal_error(const Glib::ustring& message)
{
}
internal_error::~internal_error() throw()
internal_error::~internal_error() noexcept
{}
void internal_error::Raise() const
......
......@@ -33,7 +33,7 @@ class internal_error: public exception
{
public:
explicit internal_error(const Glib::ustring& message);
~internal_error() throw() override;
~internal_error() noexcept override;
void Raise() const override;
exception * Clone() const override;
......
......@@ -7,7 +7,7 @@ parse_error::parse_error(const Glib::ustring& message)
{
}
parse_error::~parse_error() throw()
parse_error::~parse_error() noexcept
{}
void parse_error::Raise() const
......
......@@ -36,7 +36,7 @@ class parse_error: public exception
{
public:
explicit parse_error(const Glib::ustring& message);
~parse_error() throw() override;
~parse_error() noexcept override;
void Raise() const override;
exception* Clone() const override;
......
......@@ -7,7 +7,7 @@ validity_error::validity_error(const Glib::ustring& message)
{
}
validity_error::~validity_error() throw()
validity_error::~validity_error() noexcept
{}
void validity_error::Raise() const
......
......@@ -33,7 +33,7 @@ class validity_error: public parse_error
{
public:
explicit validity_error(const Glib::ustring& message);
~validity_error() throw() override;
~validity_error() noexcept override;
void Raise() const override;
exception* Clone() const override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment