diff options
author | Murray Cumming <murrayc@murrayc.com> | 2015-07-31 11:33:58 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2015-07-31 11:33:58 +0200 |
commit | a5a7306e033ab41eecff31f885d9fa9c85e15cb4 (patch) | |
tree | 79aa5b0e29630b127745fc233d085fa09975ac3f | |
parent | 26da240ad23e228fad5e4d3433cd79bf0dbc4d8f (diff) |
C++11: Use noexcept instead of throw().
-rw-r--r-- | cairomm/exception.cc | 4 | ||||
-rw-r--r-- | cairomm/exception.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cairomm/exception.cc b/cairomm/exception.cc index 760606b..3667401 100644 --- a/cairomm/exception.cc +++ b/cairomm/exception.cc @@ -34,7 +34,7 @@ logic_error::logic_error(ErrorStatus status) { } -logic_error::~logic_error() throw() +logic_error::~logic_error() noexcept {} ErrorStatus logic_error::get_status_code() const @@ -43,7 +43,7 @@ ErrorStatus logic_error::get_status_code() const } /* -const char* logic_error::what() const throw() +const char* logic_error::what() const noexcept { //Hopefully this is a const char* to a static string. return cairo_status_to_string((cairo_status_t)m_status); diff --git a/cairomm/exception.h b/cairomm/exception.h index ee91e3f..27f1f67 100644 --- a/cairomm/exception.h +++ b/cairomm/exception.h @@ -31,9 +31,9 @@ class logic_error: public std::logic_error { public: explicit logic_error(ErrorStatus status); - virtual ~logic_error() throw(); + virtual ~logic_error() noexcept; - //virtual const char* what() const throw(); + //virtual const char* what() const noexcept; ErrorStatus get_status_code() const; private: |