aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compilerscanfunctions.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2025-02-04 14:44:07 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2025-02-18 20:02:01 +0100
commit54a1be722cd6e59adc7d753e51404733b078b798 (patch)
treea7e1118439a5eedb5d19aef4d48275f1a22a5301 /src/qml/compiler/qv4compilerscanfunctions.cpp
parent24a9e1a1bb69875240a3b27302bedbce0582356a (diff)
qv4compilerscanfunctions: Avoid QList detach
Change-Id: Ie956854fd0e89fd7fde0509fb46ac861c9571d0f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
-rw-r--r--src/qml/compiler/qv4compilerscanfunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compilerscanfunctions.cpp b/src/qml/compiler/qv4compilerscanfunctions.cpp
index f667548878..9ae53ea259 100644
--- a/src/qml/compiler/qv4compilerscanfunctions.cpp
+++ b/src/qml/compiler/qv4compilerscanfunctions.cpp
@@ -750,7 +750,7 @@ void ScanFunctions::calcEscapingVariables()
for (Context *c : std::as_const(m->contextMap)) {
if (c->contextType != ContextType::ESModule)
continue;
- for (const auto &entry: c->exportEntries) {
+ for (const auto &entry: std::as_const(c->exportEntries)) {
auto mIt = c->members.constFind(entry.localName);
if (mIt != c->members.constEnd())
mIt->canEscape = true;