Never use reference when iterating QJsonArray
This commit is contained in:
@@ -396,7 +396,7 @@ void TidalRequest::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;
|
||||
|
||||
@@ -574,7 +574,7 @@ void TidalRequest::AlbumsReceived(QNetworkReply *reply, const QString &artist_id
|
||||
}
|
||||
|
||||
int albums_received = 0;
|
||||
for (const QJsonValue &value_item : array_items) {
|
||||
for (const QJsonValue value_item : array_items) {
|
||||
|
||||
++albums_received;
|
||||
|
||||
@@ -845,7 +845,7 @@ void TidalRequest::SongsReceived(QNetworkReply *reply, const QString &artist_id,
|
||||
bool multidisc = false;
|
||||
SongList songs;
|
||||
int songs_received = 0;
|
||||
for (const QJsonValue &value_item : json_items) {
|
||||
for (const QJsonValue value_item : json_items) {
|
||||
|
||||
if (!value_item.isObject()) {
|
||||
Error("Invalid Json reply, track is not a object.", value_item);
|
||||
|
||||
Reference in New Issue
Block a user