mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 17:14:58 +01:00
Use std::as_const
This commit is contained in:
parent
75b6669371
commit
0b15e29324
@ -20,6 +20,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@ -720,7 +721,7 @@ void ScrobblingAPI20::ScrobbleRequestFinished(QNetworkReply *reply, const QList<
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const QJsonValueRef value : array_scrobble) { // clazy:exclude=range-loop
|
for (const QJsonValueRef value : std::as_const(array_scrobble)) {
|
||||||
|
|
||||||
if (!value.isObject()) {
|
if (!value.isObject()) {
|
||||||
Error("Json scrobbles scrobble array value is not an object.");
|
Error("Json scrobbles scrobble array value is not an object.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user