forked from qt-creator/qt-creator
ClangTools: Use qAsConst with non-const Qt containers in range-loops
Change-Id: Id9df0a27c4bcba57ee76574e32ca53cb6c28a43d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -103,7 +103,7 @@ void VirtualFileSystemOverlay::update()
|
||||
jsonRoot["type"] = "directory";
|
||||
jsonRoot["name"] = root.toUserOutput();
|
||||
QJsonArray contents;
|
||||
for (auto doc : documents)
|
||||
for (auto doc : qAsConst(documents))
|
||||
contents << toContent(doc);
|
||||
jsonRoot["contents"] = contents;
|
||||
jsonRoots << jsonRoot;
|
||||
|
||||
Reference in New Issue
Block a user