Partition, ...: add noexcept to callback methods

This commit is contained in:
Max Kellermann 2019-08-02 14:44:00 +02:00
parent af99f9fc90
commit fe2f8c088a
6 changed files with 6 additions and 6 deletions

View File

@ -208,7 +208,7 @@ Partition::OnMixerVolumeChanged(Mixer &, int) noexcept
}
void
Partition::OnGlobalEvent(unsigned mask)
Partition::OnGlobalEvent(unsigned mask) noexcept
{
if ((mask & SYNC_WITH_PLAYER) != 0)
SyncWithPlayer();

View File

@ -267,7 +267,7 @@ private:
void OnMixerVolumeChanged(Mixer &mixer, int volume) noexcept override;
/* callback for #global_events */
void OnGlobalEvent(unsigned mask);
void OnGlobalEvent(unsigned mask) noexcept;
};
#endif

View File

@ -106,7 +106,7 @@ UpdateService::CancelMount(const char *uri)
}
inline void
UpdateService::Task()
UpdateService::Task() noexcept
{
assert(walk != nullptr);

View File

@ -110,7 +110,7 @@ private:
void RunDeferred() noexcept;
/* the update thread */
void Task();
void Task() noexcept;
void StartThread(UpdateQueueItem &&i);

View File

@ -122,7 +122,7 @@ public:
}
/* callback for #reconnect_timer */
void OnReconnectTimer() {
void OnReconnectTimer() noexcept {
assert(state == State::DELAY);
Connect();

View File

@ -107,7 +107,7 @@ public:
}
private:
void OnTimeout() {
void OnTimeout() noexcept {
callback(this, userdata);
}
};