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

@@ -1897,9 +1897,9 @@ void Playlist::RemoveItemsNotInQueue() {
}
int start = 0;
forever {
Q_FOREVER {
// Find a place to start - first row that isn't in the queue
forever {
Q_FOREVER {
if (start >= rowCount()) return;
if (!queue_->ContainsSourceRow(start) && current_row() != start) break;
start++;
@@ -1907,7 +1907,7 @@ void Playlist::RemoveItemsNotInQueue() {
// Figure out how many rows to remove - keep going until we find a row that is in the queue
int count = 1;
forever {
Q_FOREVER {
if (start + count >= rowCount()) break;
if (queue_->ContainsSourceRow(start + count) || current_row() == start + count) break;
count++;