summaryrefslogtreecommitdiff
path: root/src/encoder
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-05-30 22:30:34 -0700
committerRosen Penev <rosenp@gmail.com>2021-05-30 22:46:46 -0700
commit9ef1cf15a96e179d3913f7eaa232c515a0a38134 (patch)
tree08927786a104ec1266f839202d4fbbc56d1cc249 /src/encoder
parent679b3bc00f851c1511eed7f944209cf096f87657 (diff)
clang-tidy: default virtual destructors
Found with cppcoreguidelines-special-member-functions Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/encoder')
-rw-r--r--src/encoder/EncoderInterface.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoder/EncoderInterface.hxx b/src/encoder/EncoderInterface.hxx
index 79f4e905b..a4fe87e4b 100644
--- a/src/encoder/EncoderInterface.hxx
+++ b/src/encoder/EncoderInterface.hxx
@@ -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.