diff options
author | Laurent Montel <montel@kde.org> | 2019-02-26 07:04:22 +0100 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2019-03-03 09:32:34 +0100 |
commit | 38b51667b5ba74fc5a28172e251c9ba4c0398e32 (patch) | |
tree | a4d4f25669093f82c006d21e8bf6a7dd09549810 /src/core/ksharedconfig.cpp | |
parent | 71abd4319c87d559e3079528bf7feb73fa4fd521 (diff) | |
download | kconfig-38b51667b5ba74fc5a28172e251c9ba4c0398e32.tar.gz kconfig-38b51667b5ba74fc5a28172e251c9ba4c0398e32.tar.bz2 |
[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
Diffstat (limited to 'src/core/ksharedconfig.cpp')
-rw-r--r-- | src/core/ksharedconfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ksharedconfig.cpp b/src/core/ksharedconfig.cpp index 52a2d23d..0b2b9c35 100644 --- a/src/core/ksharedconfig.cpp +++ b/src/core/ksharedconfig.cpp @@ -90,7 +90,7 @@ KSharedConfigPtr KSharedConfig::openConfig(const QString &_fileName, list->mainConfig = nullptr; } - foreach (auto cfg, *static_cast<const GlobalSharedConfigList*>(list)) { + for (auto cfg : qAsConst(*list)) { if (cfg->name() == fileName && cfg->d_ptr->openFlags == flags && cfg->locationType() == resType |