diff --git a/src/Partition.cxx b/src/Partition.cxx index 6903e161e..cccb814ac 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -115,19 +115,19 @@ Partition::BorderPause() } void -Partition::OnQueueModified() +Partition::OnQueueModified() noexcept { EmitIdle(IDLE_PLAYLIST); } void -Partition::OnQueueOptionsChanged() +Partition::OnQueueOptionsChanged() noexcept { EmitIdle(IDLE_OPTIONS); } void -Partition::OnQueueSongStarted() +Partition::OnQueueSongStarted() noexcept { EmitIdle(IDLE_PLAYER); } diff --git a/src/Partition.hxx b/src/Partition.hxx index 139607dc4..ca44e178a 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -247,9 +247,9 @@ struct Partition final : QueueListener, PlayerListener, MixerListener { private: /* virtual methods from class QueueListener */ - void OnQueueModified() override; - void OnQueueOptionsChanged() override; - void OnQueueSongStarted() override; + void OnQueueModified() noexcept override; + void OnQueueOptionsChanged() noexcept override; + void OnQueueSongStarted() noexcept override; /* virtual methods from class PlayerListener */ void OnPlayerSync() noexcept override; diff --git a/src/queue/Listener.hxx b/src/queue/Listener.hxx index 113f02c02..e0ac1593f 100644 --- a/src/queue/Listener.hxx +++ b/src/queue/Listener.hxx @@ -25,19 +25,19 @@ public: /** * Called after the queue has been modified. */ - virtual void OnQueueModified() = 0; + virtual void OnQueueModified() noexcept = 0; /** * Called after a playback options have been changed. */ - virtual void OnQueueOptionsChanged() = 0; + virtual void OnQueueOptionsChanged() noexcept = 0; /** * Called after the player has started playing a new song. * This gets called by playlist::SyncWithPlayer() after it has * been notified by the player thread. */ - virtual void OnQueueSongStarted() = 0; + virtual void OnQueueSongStarted() noexcept = 0; }; #endif