From f143efb810da68140e3ccde89fbd0f7692c43185 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 25 Aug 2021 03:47:50 +0200 Subject: [PATCH] Revert "Use std::as_const" This reverts commit 0b15e29324caf15743894a29e61acddad1abd89b. --- src/scrobbler/scrobblingapi20.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scrobbler/scrobblingapi20.cpp b/src/scrobbler/scrobblingapi20.cpp index 437e00c1e..a91f9e994 100644 --- a/src/scrobbler/scrobblingapi20.cpp +++ b/src/scrobbler/scrobblingapi20.cpp @@ -20,7 +20,6 @@ #include "config.h" #include -#include #include #include @@ -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.");