forked from qt-creator/qt-creator
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
{
|
||||
auto arr = get<QJsonArray>(js.object(), "projectinfo", "buildsystem_files");
|
||||
appendFiles(arr, m_files);
|
||||
auto subprojects = get<QJsonArray>(js.object(), "projectinfo", "subprojects");
|
||||
const auto subprojects = get<QJsonArray>(js.object(), "projectinfo", "subprojects");
|
||||
for (const auto &subproject : *subprojects) {
|
||||
auto arr = get<QJsonArray>(subproject.toObject(), "buildsystem_files");
|
||||
appendFiles(arr, m_files);
|
||||
|
||||
Reference in New Issue
Block a user