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

@@ -396,7 +396,7 @@ void QobuzRequest::ArtistsReplyReceived(QNetworkReply *reply, const int limit_re
}
int artists_received = 0;
for (const QJsonValue &value_item : array_items) {
for (const QJsonValue value_item : array_items) {
++artists_received;
@@ -609,7 +609,7 @@ void QobuzRequest::AlbumsReceived(QNetworkReply *reply, const QString &artist_id
}
int albums_received = 0;
for (const QJsonValue &value : array_items) {
for (const QJsonValue value : array_items) {
++albums_received;
@@ -907,7 +907,7 @@ void QobuzRequest::SongsReceived(QNetworkReply *reply, const QString &artist_id_
//bool multidisc = false;
SongList songs;
int songs_received = 0;
for (const QJsonValue &value_item : array_items) {
for (const QJsonValue value_item : array_items) {
if (!value_item.isObject()) {
Error("Invalid Json reply, track is not a object.", value_item);