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
|
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:
|
|||||||
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)
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
UpdateService::Task()
|
UpdateService::Task() noexcept
|
||||||
{
|
{
|
||||||
assert(walk != nullptr);
|
assert(walk != nullptr);
|
||||||
|
|
||||||
|
@ -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:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 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:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void OnTimeout() {
|
void OnTimeout() noexcept {
|
||||||
callback(this, userdata);
|
callback(this, userdata);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user