Add missing reference

This commit is contained in:
Jonas Kvinge 2024-08-24 19:28:15 +02:00
parent dde8661e93
commit 69f8ca95bc
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ void LastFmCoverProvider::QueryFinished(QNetworkReply *reply, const int id, cons
const QJsonArray array_image = json_image.toArray();
QString image_url_use;
LastFmImageSize image_size_use = LastFmImageSize::Unknown;
for (const QJsonValue value_image : array_image) {
for (const QJsonValue &value_image : array_image) {
if (!value_image.isObject()) {
Error(QStringLiteral("Invalid Json reply, album image value is not an object."));
continue;

View File

@ -185,7 +185,7 @@ void MusicbrainzCoverProvider::HandleSearchReply(QNetworkReply *reply, const int
const QJsonArray array_artists = json_artists.toArray();
int i = 0;
QString artist;
for (const QJsonValue value_artist : array_artists) {
for (const QJsonValue &value_artist : array_artists) {
if (!value_artist.isObject()) {
Error(QStringLiteral("Invalid Json reply, artist is not a object."));
continue;