From dffdff73fa98a4fdebca38fb4a41938541ffb1c1 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sat, 28 Aug 2021 18:05:30 +0200 Subject: GIT_SILENT: we can use std::as_const directly --- src/core/kauthorized.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/kauthorized.cpp') diff --git a/src/core/kauthorized.cpp b/src/core/kauthorized.cpp index a8784a1c..3c0941d5 100644 --- a/src/core/kauthorized.cpp +++ b/src/core/kauthorized.cpp @@ -378,7 +378,7 @@ authorizeUrlActionInternal(const QString &action, const QUrl &_baseURL, const QU QUrl destURL(_destURL); destURL.setPath(QDir::cleanPath(destURL.path())); - for (const URLActionRule &rule : qAsConst(d->urlActionRestrictions)) { + for (const URLActionRule &rule : std::as_const(d->urlActionRestrictions)) { if ((result != rule.permission) && // No need to check if it doesn't make a difference (action == QLatin1String(rule.action.constData())) && rule.baseMatch(baseURL, baseClass) && rule.destMatch(destURL, destClass, baseURL, baseClass)) { -- cgit v1.2.1