File tree Expand file tree Collapse file tree 10 files changed +13
-13
lines changed Expand file tree Collapse file tree 10 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ class fail_exception : public std::exception
44
44
{
45
45
public:
46
46
fail_exception (const std::string& msg) : msg_(msg) {}
47
- ~fail_exception () throw () override {}
48
- const char * what () const throw() override { return msg_.c_str (); }
47
+ ~fail_exception () noexcept override {}
48
+ const char * what () const noexcept override { return msg_.c_str (); }
49
49
50
50
private:
51
51
std::string msg_;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class MyException: public xmlpp::exception
28
28
{
29
29
public:
30
30
MyException ();
31
- ~MyException () throw () override ;
31
+ ~MyException () noexcept override ;
32
32
void Raise () const override ;
33
33
xmlpp::exception * Clone () const override ;
34
34
};
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ exception::exception(const Glib::ustring& message)
9
9
{
10
10
}
11
11
12
- exception::~exception () throw ()
12
+ exception::~exception () noexcept
13
13
{}
14
14
15
- const char * exception::what () const throw()
15
+ const char * exception::what () const noexcept
16
16
{
17
17
return message_.c_str ();
18
18
}
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ class LIBXMLPP_API exception: public std::exception
41
41
{
42
42
public:
43
43
explicit exception (const Glib::ustring& message);
44
- ~exception () throw () override ;
44
+ ~exception () noexcept override ;
45
45
46
- const char * what () const throw() override ;
46
+ const char * what () const noexcept override ;
47
47
48
48
// TODO: Use lower-case names when we can break ABI?
49
49
virtual void Raise () const ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ internal_error::internal_error(const Glib::ustring& message)
8
8
{
9
9
}
10
10
11
- internal_error::~internal_error () throw ()
11
+ internal_error::~internal_error () noexcept
12
12
{}
13
13
14
14
void internal_error::Raise () const
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class internal_error: public exception
33
33
{
34
34
public:
35
35
explicit internal_error (const Glib::ustring& message);
36
- ~internal_error () throw () override ;
36
+ ~internal_error () noexcept override ;
37
37
38
38
void Raise () const override ;
39
39
exception * Clone () const override ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ parse_error::parse_error(const Glib::ustring& message)
7
7
{
8
8
}
9
9
10
- parse_error::~parse_error () throw ()
10
+ parse_error::~parse_error () noexcept
11
11
{}
12
12
13
13
void parse_error::Raise () const
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class parse_error: public exception
36
36
{
37
37
public:
38
38
explicit parse_error (const Glib::ustring& message);
39
- ~parse_error () throw () override ;
39
+ ~parse_error () noexcept override ;
40
40
41
41
void Raise () const override ;
42
42
exception* Clone () const override ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ validity_error::validity_error(const Glib::ustring& message)
7
7
{
8
8
}
9
9
10
- validity_error::~validity_error () throw ()
10
+ validity_error::~validity_error () noexcept
11
11
{}
12
12
13
13
void validity_error::Raise () const
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class validity_error: public parse_error
33
33
{
34
34
public:
35
35
explicit validity_error (const Glib::ustring& message);
36
- ~validity_error () throw () override ;
36
+ ~validity_error () noexcept override ;
37
37
38
38
void Raise () const override ;
39
39
exception* Clone () const override ;
You can’t perform that action at this time.
0 commit comments