Use std::as_const

This commit is contained in:
Jonas Kvinge 2021-08-25 03:00:34 +02:00
parent 75b6669371
commit 0b15e29324
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include "config.h"
#include <algorithm>
#include <utility>
#include <QtGlobal>
#include <QApplication>
@ -720,7 +721,7 @@ void ScrobblingAPI20::ScrobbleRequestFinished(QNetworkReply *reply, const QList<
return;
}
for (const QJsonValueRef value : array_scrobble) { // clazy:exclude=range-loop
for (const QJsonValueRef value : std::as_const(array_scrobble)) {
if (!value.isObject()) {
Error("Json scrobbles scrobble array value is not an object.");