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:
Alessandro Portale
2021-02-15 10:03:57 +01:00
parent 1d27f894bb
commit 72d91dc94a
55 changed files with 81 additions and 85 deletions

View File

@@ -199,7 +199,7 @@ void QbsProfileManager::addProfileFromKit(const ProjectExplorer::Kit *k)
// set up properties:
QVariantMap data = m_defaultPropertyProvider->properties(k, QVariantMap());
for (PropertyProvider *provider : g_propertyProviders) {
for (PropertyProvider *provider : qAsConst(g_propertyProviders)) {
if (provider->canHandle(k))
data = provider->properties(k, data);
}