diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-08-26 09:49:27 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-15 19:13:20 +0000 |
commit | b58c33da59bbcf3782ca3d21b68bf2593c7f8d7a (patch) | |
tree | 1a270c10897777de29f305bdd421bb728492b3d1 /src/qml/jsruntime/qv4object_p.h | |
parent | 15cd948bdaed4f2e64fa879106e7237d958695b0 (diff) |
Get rid of propertyAt in Object
Change-Id: I3022b3c5c1ae90530ef5ca88e0b88a2fd1102e73
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4object_p.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index 6d8f6234fc..943325ef03 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -52,8 +52,6 @@ struct Object : Base { const Value *propertyData(uint index) const { return memberData->data + index; } Value *propertyData(uint index) { return memberData->data + index; } - const Property *propertyAt(uint index) const { return reinterpret_cast<const Property *>(propertyData(index)); } - Property *propertyAt(uint index) { return reinterpret_cast<Property *>(propertyData(index)); } InternalClass *internalClass; Pointer<Object> prototype; @@ -142,8 +140,8 @@ struct Q_QML_EXPORT Object: Managed { Heap::ArrayData *arrayData() const { return d()->arrayData; } void setArrayData(ArrayData *a) { d()->arrayData = a->d(); } - const Property *propertyAt(uint index) const { return d()->propertyAt(index); } - Property *propertyAt(uint index) { return d()->propertyAt(index); } + void getProperty(uint index, Property *p, PropertyAttributes *attrs) const; + void setProperty(uint index, const Property *p); const ObjectVTable *vtable() const { return reinterpret_cast<const ObjectVTable *>(d()->vtable()); } Heap::Object *prototype() const { return d()->prototype; } |