queue/Listener: add noexcept

This commit is contained in:
Max Kellermann 2019-05-31 13:57:46 +02:00
parent 8fef4af7b2
commit 57de2470f1
3 changed files with 9 additions and 9 deletions

View File

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

View File

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

View File

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