[clang-tidy] use override instead of virtual

Found with modernize-use-override

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-01-31 19:37:53 -08:00
parent 0b2444450f
commit b64fdae938
38 changed files with 56 additions and 56 deletions

View File

@@ -210,7 +210,7 @@ class AlsaOutput final
public:
AlsaOutput(EventLoop &loop, const ConfigBlock &block);
~AlsaOutput() noexcept {
~AlsaOutput() noexcept override {
/* free libasound's config cache */
snd_config_update_free_global();
}

View File

@@ -53,7 +53,7 @@ class AoOutput final : AudioOutput, SafeSingleton<AoInit> {
size_t frame_size;
AoOutput(const ConfigBlock &block);
~AoOutput();
~AoOutput() override;
public:
static AudioOutput *Create(EventLoop &, const ConfigBlock &block) {

View File

@@ -44,7 +44,7 @@ class FifoOutput final : AudioOutput {
public:
FifoOutput(const ConfigBlock &block);
~FifoOutput() {
~FifoOutput() override {
CloseFifo();
}

View File

@@ -49,7 +49,7 @@ struct ShoutOutput final : AudioOutput {
uint8_t buffer[32768];
explicit ShoutOutput(const ConfigBlock &block);
~ShoutOutput();
~ShoutOutput() override;
static AudioOutput *Create(EventLoop &event_loop,
const ConfigBlock &block);