diff options
author | Ulf Hermann <[email protected]> | 2023-03-15 11:39:26 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2023-03-15 19:33:09 +0100 |
commit | 1fbed641518b676c18fdf967844da659de728d60 (patch) | |
tree | cf9aff00844313e7554f09e3f347bbae479bdc69 /src/qml/jsruntime/qv4functionobject_p.h | |
parent | e3f357bf6a3edc48bc1e6b31752ffb1c097510a5 (diff) |
QML: Use qsizetype as index for IndexedBuiltinFunction
It's primarily an index into the property roles, which is a QList.
Change-Id: Ib3f0000166cae87d3ae0a69db971257e71a0f3e8
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject_p.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index 19c2e5d63d..6b05c221ea 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -74,9 +74,11 @@ struct FunctionPrototype : FunctionObject { void init(); }; +// A function object with an additional index into a list. +// Used by Models to refer to property roles. struct IndexedBuiltinFunction : FunctionObject { - inline void init(QV4::ExecutionContext *scope, uint index, VTable::Call call); - uint index; + inline void init(QV4::ExecutionContext *scope, qsizetype index, VTable::Call call); + qsizetype index; }; struct ArrowFunction : FunctionObject { @@ -235,7 +237,8 @@ struct Q_QML_PRIVATE_EXPORT IndexedBuiltinFunction : FunctionObject V4_OBJECT2(IndexedBuiltinFunction, FunctionObject) }; -void Heap::IndexedBuiltinFunction::init(QV4::ExecutionContext *scope, uint index, VTable::Call call) +void Heap::IndexedBuiltinFunction::init( + QV4::ExecutionContext *scope, qsizetype index, VTable::Call call) { Heap::FunctionObject::init(scope); this->jsCall = call; |