aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-09-12 14:26:29 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-09-13 22:25:31 +0200
commita429050628c6170d65ea97dfc4508966bb1b15a7 (patch)
treecc508d066849ea5dfd6fddceaa1b20c9518f16dd /src/qml/qml/qqml.cpp
parentd577b9e42579ad261801b27d11378c235d0502f8 (diff)
Do not call metaTypeFromJS on an object
This is misleading since the method is static. Change-Id: I921906a06575f263a7619cef01698923d1d5e61f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r--src/qml/qml/qqml.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
index 847522f052..200c2f7b71 100644
--- a/src/qml/qml/qqml.cpp
+++ b/src/qml/qml/qqml.cpp
@@ -1362,9 +1362,8 @@ void AOTCompiledContext::initCallGlobalLookup(uint index) const
bool AOTCompiledContext::loadGlobalLookup(uint index, void *target, QMetaType type) const
{
QV4::Lookup *l = compilationUnit->runtimeLookups + index;
- QV4::ExecutionEngine *v4 = engine->handle();
- if (!v4->metaTypeFromJS(l->globalGetter(l, engine->handle()), type, target)) {
- v4->throwTypeError();
+ if (!QV4::ExecutionEngine::metaTypeFromJS(l->globalGetter(l, engine->handle()), type, target)) {
+ engine->handle()->throwTypeError();
return false;
}
return true;