mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 09:05:04 +01:00
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…
x
Reference in New Issue
Block a user