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 ...@@ -208,7 +208,7 @@ Partition::OnMixerVolumeChanged(Mixer &, int) noexcept
} }
void void
Partition::OnGlobalEvent(unsigned mask) Partition::OnGlobalEvent(unsigned mask) noexcept
{ {
if ((mask & SYNC_WITH_PLAYER) != 0) if ((mask & SYNC_WITH_PLAYER) != 0)
SyncWithPlayer(); SyncWithPlayer();
......
...@@ -267,7 +267,7 @@ private: ...@@ -267,7 +267,7 @@ private:
void OnMixerVolumeChanged(Mixer &mixer, int volume) noexcept override; void OnMixerVolumeChanged(Mixer &mixer, int volume) noexcept override;
/* callback for #global_events */ /* callback for #global_events */
void OnGlobalEvent(unsigned mask); void OnGlobalEvent(unsigned mask) noexcept;
}; };
#endif #endif
...@@ -106,7 +106,7 @@ UpdateService::CancelMount(const char *uri) ...@@ -106,7 +106,7 @@ UpdateService::CancelMount(const char *uri)
} }
inline void inline void
UpdateService::Task() UpdateService::Task() noexcept
{ {
assert(walk != nullptr); assert(walk != nullptr);
......
...@@ -110,7 +110,7 @@ private: ...@@ -110,7 +110,7 @@ private:
void RunDeferred() noexcept; void RunDeferred() noexcept;
/* the update thread */ /* the update thread */
void Task(); void Task() noexcept;
void StartThread(UpdateQueueItem &&i); void StartThread(UpdateQueueItem &&i);
......
...@@ -122,7 +122,7 @@ public: ...@@ -122,7 +122,7 @@ public:
} }
/* callback for #reconnect_timer */ /* callback for #reconnect_timer */
void OnReconnectTimer() { void OnReconnectTimer() noexcept {
assert(state == State::DELAY); assert(state == State::DELAY);
Connect(); Connect();
......
...@@ -107,7 +107,7 @@ public: ...@@ -107,7 +107,7 @@ public:
} }
private: private:
void OnTimeout() { void OnTimeout() noexcept {
callback(this, userdata); 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