diff options
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 b6054d76..12068dc5 100644 --- a/src/core/kauthorized.cpp +++ b/src/core/kauthorized.cpp @@ -391,7 +391,7 @@ KCONFIGCORE_EXPORT bool authorizeUrlActionInternal(const QString &action, const QUrl destURL(_destURL); destURL.setPath(QDir::cleanPath(destURL.path())); - Q_FOREACH (const URLActionRule &rule, d->urlActionRestrictions) { + for (const URLActionRule &rule : qAsConst(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) && |