[libxml++] C++11: Replace throw() with noexcept.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml++] C++11: Replace throw() with noexcept.
- Date: Sun, 19 Jul 2015 19:25:16 +0000 (UTC)
commit ef56aa25a0be80fc6b90401be5f86ef13b835849
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Jul 19 21:24:51 2015 +0200
C++11: Replace throw() with noexcept.
examples/dom_update_namespace/main.cc | 4 ++--
examples/sax_exception/myparser.h | 2 +-
libxml++/exceptions/exception.cc | 4 ++--
libxml++/exceptions/exception.h | 4 ++--
libxml++/exceptions/internal_error.cc | 2 +-
libxml++/exceptions/internal_error.h | 2 +-
libxml++/exceptions/parse_error.cc | 2 +-
libxml++/exceptions/parse_error.h | 2 +-
libxml++/exceptions/validity_error.cc | 2 +-
libxml++/exceptions/validity_error.h | 2 +-
10 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/examples/dom_update_namespace/main.cc b/examples/dom_update_namespace/main.cc
index 2ce3a91..8aa4175 100644
--- a/examples/dom_update_namespace/main.cc
+++ b/examples/dom_update_namespace/main.cc
@@ -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_;
diff --git a/examples/sax_exception/myparser.h b/examples/sax_exception/myparser.h
index 68ff4a1..7eb3a5d 100644
--- a/examples/sax_exception/myparser.h
+++ b/examples/sax_exception/myparser.h
@@ -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;
};
diff --git a/libxml++/exceptions/exception.cc b/libxml++/exceptions/exception.cc
index 40c71a9..d9a323d 100644
--- a/libxml++/exceptions/exception.cc
+++ b/libxml++/exceptions/exception.cc
@@ -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();
}
diff --git a/libxml++/exceptions/exception.h b/libxml++/exceptions/exception.h
index 6b7e227..c5afdc2 100644
--- a/libxml++/exceptions/exception.h
+++ b/libxml++/exceptions/exception.h
@@ -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;
diff --git a/libxml++/exceptions/internal_error.cc b/libxml++/exceptions/internal_error.cc
index 1cea292..13f6392 100644
--- a/libxml++/exceptions/internal_error.cc
+++ b/libxml++/exceptions/internal_error.cc
@@ -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
diff --git a/libxml++/exceptions/internal_error.h b/libxml++/exceptions/internal_error.h
index d5ef7f1..887dd65 100644
--- a/libxml++/exceptions/internal_error.h
+++ b/libxml++/exceptions/internal_error.h
@@ -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;
diff --git a/libxml++/exceptions/parse_error.cc b/libxml++/exceptions/parse_error.cc
index 2ad8ccd..b9c1987 100644
--- a/libxml++/exceptions/parse_error.cc
+++ b/libxml++/exceptions/parse_error.cc
@@ -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
diff --git a/libxml++/exceptions/parse_error.h b/libxml++/exceptions/parse_error.h
index e14918e..12c8099 100644
--- a/libxml++/exceptions/parse_error.h
+++ b/libxml++/exceptions/parse_error.h
@@ -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;
diff --git a/libxml++/exceptions/validity_error.cc b/libxml++/exceptions/validity_error.cc
index 5376d3a..d34332f 100644
--- a/libxml++/exceptions/validity_error.cc
+++ b/libxml++/exceptions/validity_error.cc
@@ -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
diff --git a/libxml++/exceptions/validity_error.h b/libxml++/exceptions/validity_error.h
index e5414ec..513d0e1 100644
--- a/libxml++/exceptions/validity_error.h
+++ b/libxml++/exceptions/validity_error.h
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]