Partition, ...: add noexcept
to callback methods
This commit is contained in:
parent
af99f9fc90
commit
fe2f8c088a
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user