diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-01-10 09:15:33 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-04-12 13:59:12 +0000 |
commit | 6b110a30df178b2aaace579841e5bd74f2e9ee99 (patch) | |
tree | ecb973cec95232bddc35ce79cc24fa0374d5fc8c /src/qml/jsruntime/qv4internalclass_p.h | |
parent | 6002b48c3c5edc509c269c801fc8a088d5065ce8 (diff) |
Rename InternalClass::id to protoId
It really identifies the 'revision' of the prototype chain
that is being used with this internal class.
Change-Id: Id5829c055cde2c1a2ca1032a7e831b3f0428774e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4internalclass_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4internalclass_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4internalclass_p.h b/src/qml/jsruntime/qv4internalclass_p.h index 0e6f52da43..909335df58 100644 --- a/src/qml/jsruntime/qv4internalclass_p.h +++ b/src/qml/jsruntime/qv4internalclass_p.h @@ -264,7 +264,7 @@ struct InternalClassTransition namespace Heap { struct InternalClass : Base { - int id; // unique across the engine, gets changed also when proto chain changes + int protoId; // unique across the engine, gets changed whenever the proto chain changes ExecutionEngine *engine; const VTable *vtable; Heap::Object *prototype; @@ -295,7 +295,7 @@ struct InternalClass : Base { Q_REQUIRED_RESULT InternalClass *addMember(Identifier *identifier, PropertyAttributes data, uint *index = nullptr); Q_REQUIRED_RESULT InternalClass *changeMember(Identifier *identifier, PropertyAttributes data, uint *index = nullptr); static void changeMember(QV4::Object *object, QV4::String *string, PropertyAttributes data, uint *index = nullptr); - static void removeMember(QV4::Object *object, Identifier *id); + static void removeMember(QV4::Object *object, Identifier *identifier); uint find(const QV4::String *string); uint find(const Identifier *id) { |