aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4executablecompilationunit_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-04-15 10:11:43 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-04-15 11:14:19 +0200
commit221b2789dbc64520c97bf39a7d8465780c6fddfc (patch)
tree6cb0604ec881a1fec0a13abcf2663294dd530802 /src/qml/jsruntime/qv4executablecompilationunit_p.h
parent198120212285e4cda45caaf0c32c15c25eddc6c8 (diff)
Streamline retrieval of context property names and IDs
Most of this can be inline, and we never need to copy the actual identifier hash. Change-Id: I6468b6b1a571e4854c00c865a2aa57c3b2f0ca8c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit_p.h')
-rw-r--r--src/qml/jsruntime/qv4executablecompilationunit_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit_p.h b/src/qml/jsruntime/qv4executablecompilationunit_p.h
index 1b1b9add5c..3dc0e58ca5 100644
--- a/src/qml/jsruntime/qv4executablecompilationunit_p.h
+++ b/src/qml/jsruntime/qv4executablecompilationunit_p.h
@@ -319,6 +319,7 @@ IdentifierHash ExecutableCompilationUnit::namedObjectsPerComponent(int component
auto it = namedObjectsPerComponentCache.find(componentObjectIndex);
if (Q_UNLIKELY(it == namedObjectsPerComponentCache.end()))
return createNamedObjectsPerComponent(componentObjectIndex);
+ Q_ASSERT(!it->isEmpty());
return *it;
}