From 6aabb1e858ace46541ce367158555d4a62f2b067 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 1 May 2025 10:48:13 -0400 Subject: [PATCH] chore: XBase, use default for deconstructor --- src/lib/base/XBase.cpp | 5 ----- src/lib/base/XBase.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/base/XBase.cpp b/src/lib/base/XBase.cpp index ef7bc52e9..016b3ebde 100644 --- a/src/lib/base/XBase.cpp +++ b/src/lib/base/XBase.cpp @@ -24,11 +24,6 @@ XBase::XBase(const std::string &msg) : std::runtime_error(msg) // do nothing } -XBase::~XBase() throw() -{ - // do nothing -} - const char *XBase::what() const throw() { if (const char *what = std::runtime_error::what(); what != nullptr && what[0] != '\0') { diff --git a/src/lib/base/XBase.h b/src/lib/base/XBase.h index 07e6771a6..7e658ed04 100644 --- a/src/lib/base/XBase.h +++ b/src/lib/base/XBase.h @@ -21,7 +21,7 @@ public: XBase(); //! Use \c msg as the result of what() XBase(const std::string &msg); - ~XBase() throw() override; + ~XBase() throw() override = default; //! Reason for exception const char *what() const throw() override;