Use std::as_const
This commit is contained in:
parent
75b6669371
commit
0b15e29324
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue