Never use reference when iterating QJsonArray

This commit is contained in:
Jonas Kvinge
2020-11-13 20:34:36 +01:00
parent c0663bc19f
commit a155e503f4
16 changed files with 29 additions and 29 deletions

View File

@@ -251,7 +251,7 @@ void SubsonicRequest::AlbumsReplyReceived(QNetworkReply *reply, const int offset
}
int albums_received = 0;
for (const QJsonValue &value_album : array_albums) {
for (const QJsonValue value_album : array_albums) {
++albums_received;
@@ -440,7 +440,7 @@ void SubsonicRequest::AlbumSongsReplyReceived(QNetworkReply *reply, const QStrin
bool multidisc = false;
SongList songs;
int songs_received = 0;
for (const QJsonValue &value_song : array_songs) {
for (const QJsonValue value_song : array_songs) {
if (!value_song.isObject()) {
Error("Invalid Json reply, track is not a object.", value_song);