diff --git a/src/covermanager/lastfmcoverprovider.cpp b/src/covermanager/lastfmcoverprovider.cpp index ae668f6b2..f738c9866 100644 --- a/src/covermanager/lastfmcoverprovider.cpp +++ b/src/covermanager/lastfmcoverprovider.cpp @@ -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; diff --git a/src/covermanager/musicbrainzcoverprovider.cpp b/src/covermanager/musicbrainzcoverprovider.cpp index 29ea2bbf5..04a42c2e1 100644 --- a/src/covermanager/musicbrainzcoverprovider.cpp +++ b/src/covermanager/musicbrainzcoverprovider.cpp @@ -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;