chore: XBase, use default for deconstructor
This commit is contained in:
parent
9aec1ad479
commit
6aabb1e858
2 changed files with 1 additions and 6 deletions
|
|
@ -24,11 +24,6 @@ XBase::XBase(const std::string &msg) : std::runtime_error(msg)
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
XBase::~XBase() throw()
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *XBase::what() const throw()
|
const char *XBase::what() const throw()
|
||||||
{
|
{
|
||||||
if (const char *what = std::runtime_error::what(); what != nullptr && what[0] != '\0') {
|
if (const char *what = std::runtime_error::what(); what != nullptr && what[0] != '\0') {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ public:
|
||||||
XBase();
|
XBase();
|
||||||
//! Use \c msg as the result of what()
|
//! Use \c msg as the result of what()
|
||||||
XBase(const std::string &msg);
|
XBase(const std::string &msg);
|
||||||
~XBase() throw() override;
|
~XBase() throw() override = default;
|
||||||
|
|
||||||
//! Reason for exception
|
//! Reason for exception
|
||||||
const char *what() const throw() override;
|
const char *what() const throw() override;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue