diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2025-02-04 14:44:07 +0100 |
|---|---|---|
| committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2025-02-18 20:02:01 +0100 |
| commit | 54a1be722cd6e59adc7d753e51404733b078b798 (patch) | |
| tree | a7e1118439a5eedb5d19aef4d48275f1a22a5301 /src/qml/compiler/qv4compilerscanfunctions.cpp | |
| parent | 24a9e1a1bb69875240a3b27302bedbce0582356a (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.cpp | 2 |
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; |
