Skip to content

Commit 6247ece

Browse files
committed
throw() -> noexcept
1 parent 30cc354 commit 6247ece

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/manual.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ By default, XPath functions throw `xpath_exception` object in case of errors; ad
21152115

21162116
[source]
21172117
----
2118-
virtual const char* xpath_exception::what() const throw();
2118+
virtual const char* xpath_exception::what() const noexcept;
21192119
const xpath_parse_result& xpath_exception::result() const;
21202120
----
21212121

@@ -3140,7 +3140,7 @@ const unsigned int +++<a href="#parse_wnorm_attribute">parse_wnorm_attribute</a>
31403140
operator +++<a href="#xpath_query::unspecified_bool_type">unspecified_bool_type</a>+++() const;
31413141
31423142
+++<span class="tok-k">class</span> <a href="#xpath_exception">xpath_exception</a>+++: public std::exception
3143-
virtual const char* +++<a href="#xpath_exception::what">what</a>+++() const throw();
3143+
virtual const char* +++<a href="#xpath_exception::what">what</a>+++() const noexcept;
31443144
31453145
const xpath_parse_result& +++<a href="#xpath_exception::result">result</a>+++() const;
31463146

src/pugixml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12391,7 +12391,7 @@ namespace pugi
1239112391
assert(_result.error);
1239212392
}
1239312393

12394-
PUGI_IMPL_FN const char* xpath_exception::what() const throw()
12394+
PUGI_IMPL_FN const char* xpath_exception::what() const PUGIXML_NOEXCEPT
1239512395
{
1239612396
return _result.error;
1239712397
}

src/pugixml.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ namespace pugi
13141314
explicit xpath_exception(const xpath_parse_result& result);
13151315

13161316
// Get error message
1317-
virtual const char* what() const throw() PUGIXML_OVERRIDE;
1317+
virtual const char* what() const PUGIXML_NOEXCEPT PUGIXML_OVERRIDE;
13181318

13191319
// Get parse result
13201320
const xpath_parse_result& result() const;

0 commit comments

Comments
 (0)