From f254831aa6251af2aa9b6052953f59439035b939 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Mar 2016 23:16:35 +0100 Subject: [PATCH] Instance: remove redundant "virtual" keywords --- src/Instance.hxx | 8 ++++---- src/Partition.hxx | 6 +++--- src/StateFile.hxx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Instance.hxx b/src/Instance.hxx index ed4dacd4d..2b413d699 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -114,14 +114,14 @@ struct Instance final private: #ifdef ENABLE_DATABASE - virtual void OnDatabaseModified() override; - virtual void OnDatabaseSongRemoved(const LightSong &song) override; + void OnDatabaseModified() override; + void OnDatabaseSongRemoved(const LightSong &song) override; #endif #ifdef ENABLE_NEIGHBOR_PLUGINS /* virtual methods from class NeighborListener */ - virtual void FoundNeighbor(const NeighborInfo &info) override; - virtual void LostNeighbor(const NeighborInfo &info) override; + void FoundNeighbor(const NeighborInfo &info) override; + void LostNeighbor(const NeighborInfo &info) override; #endif /* callback for #idle_monitor */ diff --git a/src/Partition.hxx b/src/Partition.hxx index 89c761b60..666adfde9 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -217,11 +217,11 @@ private: void OnQueueSongStarted() override; /* virtual methods from class PlayerListener */ - virtual void OnPlayerSync() override; - virtual void OnPlayerTagModified() override; + void OnPlayerSync() override; + void OnPlayerTagModified() override; /* virtual methods from class MixerListener */ - virtual void OnMixerVolumeChanged(Mixer &mixer, int volume) override; + void OnMixerVolumeChanged(Mixer &mixer, int volume) override; /* callback for #global_events */ void OnGlobalEvent(unsigned mask); diff --git a/src/StateFile.hxx b/src/StateFile.hxx index babc49752..056cfb654 100644 --- a/src/StateFile.hxx +++ b/src/StateFile.hxx @@ -76,7 +76,7 @@ private: bool IsModified() const; /* virtual methods from TimeoutMonitor */ - virtual void OnTimeout() override; + void OnTimeout() override; }; #endif /* STATE_FILE_H */