forked from qt-creator/qt-creator
ClangCodeModel: Fix a qAsConst deprecation warning
Change-Id: I1a4bda015704d6012c8cde14084d51891b0dc0e2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -728,8 +728,8 @@ void ClangModelManagerSupport::updateStaleIndexEntries()
|
||||
const QDateTime sourceIndexedTime = indexFilesIt->minLastModifiedTime;
|
||||
|
||||
bool rescan = false;
|
||||
QSet<FilePath> allIncludes = snapshot.allIncludesForDocument(sourceFile);
|
||||
for (const FilePath &includeFile : qAsConst(allIncludes)) {
|
||||
const QSet<FilePath> allIncludes = snapshot.allIncludesForDocument(sourceFile);
|
||||
for (const FilePath &includeFile : allIncludes) {
|
||||
auto includeFileTimeIt = lastModifiedCache.find(includeFile);
|
||||
if (includeFileTimeIt == lastModifiedCache.end()) {
|
||||
includeFileTimeIt = lastModifiedCache.insert(includeFile,
|
||||
|
Reference in New Issue
Block a user