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/kconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/kconfig.cpp') diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index 0bf6cccd..506e3f90 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -774,7 +774,7 @@ void KConfigPrivate::parseConfigFiles() // qDebug() << "parsing local files" << files; const QByteArray utf8Locale = locale.toUtf8(); - for (const QString &file : qAsConst(files)) { + for (const QString &file : std::as_const(files)) { if (file.compare(mBackend->filePath(), sPathCaseSensitivity) == 0) { switch (mBackend->parseConfig(utf8Locale, entryMap, KConfigBackend::ParseExpansions)) { case KConfigBackend::ParseOk: -- cgit v1.2.1