Replace forever with Q_FOREVER

This commit is contained in:
Jonas Kvinge
2024-08-25 06:24:02 +02:00
parent 4ea57d1181
commit 80bea31b98
10 changed files with 13 additions and 13 deletions

View File

@@ -65,7 +65,7 @@ bool PulseDeviceFinder::Reconnect() {
}
// Wait for the context to be connected.
forever {
Q_FOREVER {
const pa_context_state state = pa_context_get_state(context_);
if (state == PA_CONTEXT_FAILED || state == PA_CONTEXT_TERMINATED) {
qLog(Warning) << "Connection to pulseaudio failed";
@@ -90,7 +90,7 @@ retry:
ListDevicesState state;
pa_context_get_sink_info_list(context_, &PulseDeviceFinder::GetSinkInfoCallback, &state);
forever {
Q_FOREVER {
if (state.finished) {
return state.devices;
}