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

player/Listener: add "noexcept"

parent a6910313
...@@ -118,13 +118,13 @@ Partition::OnQueueSongStarted() ...@@ -118,13 +118,13 @@ Partition::OnQueueSongStarted()
} }
void void
Partition::OnPlayerSync() Partition::OnPlayerSync() noexcept
{ {
EmitGlobalEvent(SYNC_WITH_PLAYER); EmitGlobalEvent(SYNC_WITH_PLAYER);
} }
void void
Partition::OnPlayerTagModified() Partition::OnPlayerTagModified() noexcept
{ {
EmitGlobalEvent(TAG_MODIFIED); EmitGlobalEvent(TAG_MODIFIED);
} }
......
...@@ -232,8 +232,8 @@ private: ...@@ -232,8 +232,8 @@ private:
void OnQueueSongStarted() override; void OnQueueSongStarted() override;
/* virtual methods from class PlayerListener */ /* virtual methods from class PlayerListener */
void OnPlayerSync() override; void OnPlayerSync() noexcept override;
void OnPlayerTagModified() override; void OnPlayerTagModified() noexcept override;
/* virtual methods from class MixerListener */ /* virtual methods from class MixerListener */
void OnMixerVolumeChanged(Mixer &mixer, int volume) override; void OnMixerVolumeChanged(Mixer &mixer, int volume) override;
......
...@@ -25,12 +25,12 @@ public: ...@@ -25,12 +25,12 @@ public:
/** /**
* Must call playlist_sync(). * Must call playlist_sync().
*/ */
virtual void OnPlayerSync() = 0; virtual void OnPlayerSync() noexcept = 0;
/** /**
* The current song's tag has changed. * The current song's tag has changed.
*/ */
virtual void OnPlayerTagModified() = 0; virtual void OnPlayerTagModified() noexcept = 0;
}; };
#endif #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