Commit fe2f8c08 authored by Max Kellermann's avatar Max Kellermann

Partition, ...: add `noexcept` to callback methods

parent af99f9fc
......@@ -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();
......
......@@ -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
......@@ -106,7 +106,7 @@ UpdateService::CancelMount(const char *uri)
}
inline void
UpdateService::Task()
UpdateService::Task() noexcept
{
assert(walk != nullptr);
......
......@@ -110,7 +110,7 @@ private:
void RunDeferred() noexcept;
/* the update thread */
void Task();
void Task() noexcept;
void StartThread(UpdateQueueItem &&i);
......
......@@ -122,7 +122,7 @@ public:
}
/* callback for #reconnect_timer */
void OnReconnectTimer() {
void OnReconnectTimer() noexcept {
assert(state == State::DELAY);
Connect();
......
......@@ -107,7 +107,7 @@ public:
}
private:
void OnTimeout() {
void OnTimeout() noexcept {
callback(this, userdata);
}
};
......
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