player/Listener: add "noexcept"

This commit is contained in:
Max Kellermann 2017-11-26 12:39:09 +01:00
parent a6910313b4
commit 520c520512
3 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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