mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-13 17:37:58 +08:00
throw() -> noexcept
This commit is contained in:
parent
30cc354fe3
commit
6247ece208
@ -2115,7 +2115,7 @@ By default, XPath functions throw `xpath_exception` object in case of errors; ad
|
|||||||
|
|
||||||
[source]
|
[source]
|
||||||
----
|
----
|
||||||
virtual const char* xpath_exception::what() const throw();
|
virtual const char* xpath_exception::what() const noexcept;
|
||||||
const xpath_parse_result& xpath_exception::result() const;
|
const xpath_parse_result& xpath_exception::result() const;
|
||||||
----
|
----
|
||||||
|
|
||||||
@ -3140,7 +3140,7 @@ const unsigned int +++<a href="#parse_wnorm_attribute">parse_wnorm_attribute</a>
|
|||||||
operator +++<a href="#xpath_query::unspecified_bool_type">unspecified_bool_type</a>+++() const;
|
operator +++<a href="#xpath_query::unspecified_bool_type">unspecified_bool_type</a>+++() const;
|
||||||
|
|
||||||
+++<span class="tok-k">class</span> <a href="#xpath_exception">xpath_exception</a>+++: public std::exception
|
+++<span class="tok-k">class</span> <a href="#xpath_exception">xpath_exception</a>+++: public std::exception
|
||||||
virtual const char* +++<a href="#xpath_exception::what">what</a>+++() const throw();
|
virtual const char* +++<a href="#xpath_exception::what">what</a>+++() const noexcept;
|
||||||
|
|
||||||
const xpath_parse_result& +++<a href="#xpath_exception::result">result</a>+++() const;
|
const xpath_parse_result& +++<a href="#xpath_exception::result">result</a>+++() const;
|
||||||
|
|
||||||
|
@ -12391,7 +12391,7 @@ namespace pugi
|
|||||||
assert(_result.error);
|
assert(_result.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
PUGI_IMPL_FN const char* xpath_exception::what() const throw()
|
PUGI_IMPL_FN const char* xpath_exception::what() const PUGIXML_NOEXCEPT
|
||||||
{
|
{
|
||||||
return _result.error;
|
return _result.error;
|
||||||
}
|
}
|
||||||
|
@ -1314,7 +1314,7 @@ namespace pugi
|
|||||||
explicit xpath_exception(const xpath_parse_result& result);
|
explicit xpath_exception(const xpath_parse_result& result);
|
||||||
|
|
||||||
// Get error message
|
// Get error message
|
||||||
virtual const char* what() const throw() PUGIXML_OVERRIDE;
|
virtual const char* what() const PUGIXML_NOEXCEPT PUGIXML_OVERRIDE;
|
||||||
|
|
||||||
// Get parse result
|
// Get parse result
|
||||||
const xpath_parse_result& result() const;
|
const xpath_parse_result& result() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user