From fffa067a00d963ef6fb2f1bda36c06d6a8205ccb Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 28 May 2024 18:06:11 +0200 Subject: [PATCH] ClangCodeModel: Fix a qAsConst deprecation warning Change-Id: I1a4bda015704d6012c8cde14084d51891b0dc0e2 Reviewed-by: Christian Kandeler --- src/plugins/clangcodemodel/clangmodelmanagersupport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp b/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp index 525fcc7f1ea..f800979eaee 100644 --- a/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp +++ b/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp @@ -728,8 +728,8 @@ void ClangModelManagerSupport::updateStaleIndexEntries() const QDateTime sourceIndexedTime = indexFilesIt->minLastModifiedTime; bool rescan = false; - QSet allIncludes = snapshot.allIncludesForDocument(sourceFile); - for (const FilePath &includeFile : qAsConst(allIncludes)) { + const QSet allIncludes = snapshot.allIncludesForDocument(sourceFile); + for (const FilePath &includeFile : allIncludes) { auto includeFileTimeIt = lastModifiedCache.find(includeFile); if (includeFileTimeIt == lastModifiedCache.end()) { includeFileTimeIt = lastModifiedCache.insert(includeFile,