Commit 520c5205 authored by Max Kellermann's avatar Max Kellermann

player/Listener: add "noexcept"

parent a6910313
......@@ -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);
}
......
......@@ -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;
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment