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/ksharedconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ksharedconfig.cpp') diff --git a/src/core/ksharedconfig.cpp b/src/core/ksharedconfig.cpp index 98aa4c5e..09cd35f1 100644 --- a/src/core/ksharedconfig.cpp +++ b/src/core/ksharedconfig.cpp @@ -78,7 +78,7 @@ KSharedConfigPtr KSharedConfig::openConfig(const QString &_fileName, OpenFlags f list->mainConfig = nullptr; } - for (auto *cfg : qAsConst(*list)) { + for (auto *cfg : std::as_const(*list)) { if (cfg->name() == fileName && cfg->d_ptr->openFlags == flags && cfg->locationType() == resType // cfg->backend()->type() == backend ) { -- cgit v1.2.1