From 38b51667b5ba74fc5a28172e251c9ba4c0398e32 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 26 Feb 2019 07:04:22 +0100 Subject: [Kconfig] Compile without foreach Summary: compile without foreach Test Plan: Unittest Ok as previously Reviewers: dfaure Reviewed By: dfaure Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D19326 --- 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 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) && -- cgit v1.2.1