From 1fc163eb5f8e6bb1682c341d2bbca96a951587fc Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 13 Mar 2024 21:59:17 +0100 Subject: [PATCH] Playlist: Comments formatting --- src/playlist/playlist.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/playlist/playlist.cpp b/src/playlist/playlist.cpp index eeb286ab3..ef5c6907d 100644 --- a/src/playlist/playlist.cpp +++ b/src/playlist/playlist.cpp @@ -660,7 +660,7 @@ void Playlist::set_current_row(const int i, const AutoScroll autoscroll, const b current_item_index_ = new_current_item_index; - // if the given item is the first in the queue, remove it from the queue + // If the given item is the first in the queue, remove it from the queue if (current_item_index_.isValid() && current_item_index_.row() == queue_->PeekNext()) { queue_->TakeNext(); } @@ -721,7 +721,7 @@ void Playlist::set_current_row(const int i, const AutoScroll autoscroll, const b if (0 < remove_count) RemoveItemsWithoutUndo(0, remove_count); } - // the above actions make all commands on the undo stack invalid, so we better clear it. + // The above actions make all commands on the undo stack invalid, so we better clear it. undo_stack_->clear(); } @@ -1629,13 +1629,13 @@ bool Playlist::removeRows(QList &rows) { QList part; while (!rows.isEmpty()) { - // we're splitting the input list into sequences of consecutive numbers + // We're splitting the input list into sequences of consecutive numbers part.append(rows.takeFirst()); while (!rows.isEmpty() && rows.first() == part.last() - 1) { part.append(rows.takeFirst()); } - // and now we're removing the current sequence + // And now we're removing the current sequence if (!removeRows(part.last(), static_cast(part.size()))) { return false; } @@ -2109,7 +2109,7 @@ void Playlist::InvalidateDeletedSongs() { bool exists = QFile::exists(song.url().toLocalFile()); if (!exists && !item->HasForegroundColor(kInvalidSongPriority)) { - // gray out the song if it's not there + // Gray out the song if it's not there item->SetForegroundColor(kInvalidSongPriority, kInvalidSongColor); invalidated_rows.append(row); // clazy:exclude=reserve-candidates }