1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-15 02:11:35 +01:00

Revert "Use std::as_const"

This reverts commit 0b15e29324.
This commit is contained in:
Jonas Kvinge 2021-08-25 03:47:50 +02:00
parent 978fb06349
commit f143efb810

View File

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