From a5a7306e033ab41eecff31f885d9fa9c85e15cb4 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Fri, 31 Jul 2015 11:33:58 +0200 Subject: C++11: Use noexcept instead of throw(). --- cairomm/exception.cc | 4 ++-- 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: -- cgit v1.2.3