summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cairomm/exception.cc4
-rw-r--r--cairomm/exception.h4
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: