diff options
author | Laurent Montel <montel@kde.org> | 2021-08-28 18:05:30 +0200 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2021-08-28 18:05:30 +0200 |
commit | dffdff73fa98a4fdebca38fb4a41938541ffb1c1 (patch) | |
tree | 7f1c9fb2c402eef2b7ecc90ec9d31cc506160b1e /src/core/kauthorized.cpp | |
parent | 3259a6e6530cb0526bf71733ba28015f481f056e (diff) | |
download | kconfig-dffdff73fa98a4fdebca38fb4a41938541ffb1c1.tar.gz kconfig-dffdff73fa98a4fdebca38fb4a41938541ffb1c1.tar.bz2 |
GIT_SILENT: we can use std::as_const directly
Diffstat (limited to 'src/core/kauthorized.cpp')
-rw-r--r-- | src/core/kauthorized.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |