diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-01-31 19:37:53 -0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-01-31 21:27:26 -0800 |
commit | b64fdae938871976f0fdb6ab0d1a6f623ae9cd64 (patch) | |
tree | f14661c6749632066cbf33c095c633a2128f4fd6 /src/mixer | |
parent | 0b2444450f1dd3e249529d14418abf89579ad09a (diff) |
[clang-tidy] use override instead of virtual
Found with modernize-use-override
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/mixer')
-rw-r--r-- | src/mixer/plugins/AlsaMixerPlugin.cxx | 2 | ||||
-rw-r--r-- | src/mixer/plugins/HaikuMixerPlugin.cxx | 6 | ||||
-rw-r--r-- | src/mixer/plugins/PulseMixerPlugin.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mixer/plugins/AlsaMixerPlugin.cxx b/src/mixer/plugins/AlsaMixerPlugin.cxx index 5e58571e0..827035364 100644 --- a/src/mixer/plugins/AlsaMixerPlugin.cxx +++ b/src/mixer/plugins/AlsaMixerPlugin.cxx @@ -86,7 +86,7 @@ public: :Mixer(alsa_mixer_plugin, _listener), event_loop(_event_loop) {} - virtual ~AlsaMixer(); + ~AlsaMixer() override; void Configure(const ConfigBlock &block); void Setup(); diff --git a/src/mixer/plugins/HaikuMixerPlugin.cxx b/src/mixer/plugins/HaikuMixerPlugin.cxx index 5f9f5e233..af5529f9a 100644 --- a/src/mixer/plugins/HaikuMixerPlugin.cxx +++ b/src/mixer/plugins/HaikuMixerPlugin.cxx @@ -36,14 +36,14 @@ public: self(_output) {} /* virtual methods from class Mixer */ - virtual void Open() override { + void Open() override { } void Close() noexcept override { } - virtual int GetVolume() override; - virtual void SetVolume(unsigned volume) override; + int GetVolume() override; + void SetVolume(unsigned volume) override; }; static Mixer * diff --git a/src/mixer/plugins/PulseMixerPlugin.cxx b/src/mixer/plugins/PulseMixerPlugin.cxx index 5e2d47af0..8bb5571d5 100644 --- a/src/mixer/plugins/PulseMixerPlugin.cxx +++ b/src/mixer/plugins/PulseMixerPlugin.cxx @@ -54,7 +54,7 @@ public: { } - virtual ~PulseMixer(); + ~PulseMixer() override; void Offline(); void VolumeCallback(const pa_sink_input_info *i, int eol); |