clang-tidy: default virtual destructors

Found with cppcoreguidelines-special-member-functions

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-05-30 22:30:34 -07:00
parent 679b3bc00f
commit 9ef1cf15a9
9 changed files with 11 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ class Encoder {
public:
explicit Encoder(bool _implements_tag) noexcept
:implements_tag(_implements_tag) {}
virtual ~Encoder() noexcept {}
virtual ~Encoder() noexcept = default;
bool ImplementsTag() const noexcept {
return implements_tag;
@@ -111,7 +111,7 @@ public:
class PreparedEncoder {
public:
virtual ~PreparedEncoder() noexcept {}
virtual ~PreparedEncoder() noexcept = default;
/**
* Opens the object. You must call this prior to using it.