summaryrefslogtreecommitdiff
path: root/src/common-lib/configcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common-lib/configcache.cpp')
-rw-r--r--src/common-lib/configcache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common-lib/configcache.cpp b/src/common-lib/configcache.cpp
index d9dbce1c..8bbdc388 100644
--- a/src/common-lib/configcache.cpp
+++ b/src/common-lib/configcache.cpp
@@ -133,7 +133,7 @@ void AbstractConfigCache::parse()
// normalize all yaml file names
QStringList rawFilePaths;
- for (const auto &rawFile : qAsConst(d->rawFiles)) {
+ for (const auto &rawFile : std::as_const(d->rawFiles)) {
const auto path = QFileInfo(rawFile).canonicalFilePath();
if (path.isEmpty())
throw Exception("file %1 does not exist").arg(rawFile);
@@ -389,7 +389,7 @@ void AbstractConfigCache::parse()
void AbstractConfigCache::clear()
{
- for (auto &ce : qAsConst(d->cache))
+ for (auto &ce : std::as_const(d->cache))
destruct(ce.content);
d->cache.clear();
d->cacheIndex.clear();