summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonproject.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2021-02-15 10:03:57 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2021-02-17 14:43:29 +0000
commit72d91dc94af1861c4374dab5698859149b21dbfd (patch)
tree3e51016b44c6a4db35fba150579e033bbdf2a274 /src/plugins/python/pythonproject.cpp
parent1d27f894bb8454693ff5fc5979dda0d9090dc7a8 (diff)
downloadqt-creator-72d91dc94af1861c4374dab5698859149b21dbfd.tar.gz
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/python/pythonproject.cpp')
-rw-r--r--src/plugins/python/pythonproject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonproject.cpp b/src/plugins/python/pythonproject.cpp
index db15e318bd..5c3f7dcdba 100644
--- a/src/plugins/python/pythonproject.cpp
+++ b/src/plugins/python/pythonproject.cpp
@@ -268,7 +268,7 @@ void PythonBuildSystem::triggerParsing()
if (modelManager) {
auto projectInfo = modelManager->defaultProjectInfoForProject(project());
- for (const QString &importPath : m_qmlImportPaths) {
+ for (const QString &importPath : qAsConst(m_qmlImportPaths)) {
const Utils::FilePath filePath = Utils::FilePath::fromString(importPath);
projectInfo.importPaths.maybeInsert(filePath, QmlJS::Dialect::Qml);
}