From 520c520512a2063c6241ac8c63710850e5f74a25 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Nov 2017 12:39:09 +0100 Subject: [PATCH] player/Listener: add "noexcept" --- src/Partition.cxx | 4 ++-- src/Partition.hxx | 4 ++-- src/player/Listener.hxx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Partition.cxx b/src/Partition.cxx index 39768249e..5bc0a347f 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -118,13 +118,13 @@ Partition::OnQueueSongStarted() } void -Partition::OnPlayerSync() +Partition::OnPlayerSync() noexcept { EmitGlobalEvent(SYNC_WITH_PLAYER); } void -Partition::OnPlayerTagModified() +Partition::OnPlayerTagModified() noexcept { EmitGlobalEvent(TAG_MODIFIED); } diff --git a/src/Partition.hxx b/src/Partition.hxx index 68b69aa0b..a68fa4296 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -232,8 +232,8 @@ private: void OnQueueSongStarted() override; /* virtual methods from class PlayerListener */ - void OnPlayerSync() override; - void OnPlayerTagModified() override; + void OnPlayerSync() noexcept override; + void OnPlayerTagModified() noexcept override; /* virtual methods from class MixerListener */ void OnMixerVolumeChanged(Mixer &mixer, int volume) override; diff --git a/src/player/Listener.hxx b/src/player/Listener.hxx index 65f2bb598..b34f85398 100644 --- a/src/player/Listener.hxx +++ b/src/player/Listener.hxx @@ -25,12 +25,12 @@ public: /** * Must call playlist_sync(). */ - virtual void OnPlayerSync() = 0; + virtual void OnPlayerSync() noexcept = 0; /** * The current song's tag has changed. */ - virtual void OnPlayerTagModified() = 0; + virtual void OnPlayerTagModified() noexcept = 0; }; #endif