aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-03-22 14:11:17 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-03-24 10:17:35 +0100
commit2943eb3b110e8e93651b42f5d70a574517aaf437 (patch)
treec051bf69fb7460733f7613376836d20ba7dd7aad /src/qml/jsruntime/qv4engine_p.h
parent33cf3aab88acfa7c47e3eb7bf2f84a041adbd7d3 (diff)
Use QMetaType for ExecutionEngine::metaTypeFromJS()
We should avoid looking up metatypes by ID. That's expensive. Change-Id: I00ce0a7f95ec82b0db6e7eb976e39e50522a7fe4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r--src/qml/jsruntime/qv4engine_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h
index 7f14fd5e4e..1ec5eb126a 100644
--- a/src/qml/jsruntime/qv4engine_p.h
+++ b/src/qml/jsruntime/qv4engine_p.h
@@ -667,7 +667,7 @@ public:
QVariantMap variantMapFromJS(const QV4::Object *o);
- static bool metaTypeFromJS(const Value &value, int type, void *data);
+ static bool metaTypeFromJS(const Value &value, QMetaType type, void *data);
QV4::ReturnedValue metaTypeToJS(QMetaType type, const void *data);
int maxJSStackSize() const;