diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-19 09:10:42 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-22 01:06:20 +0200 |
commit | 332b870bd8f0fba6f09e539376a674d7a4413631 (patch) | |
tree | a3977c20b6331e1e6ab1d85e5e25836155797d0c /src/qml/jsruntime/qv4object_p.h | |
parent | df5edd28bc4258b89d9d5ffdddf837f339a17aad (diff) |
Convert putIndexed()
Change-Id: I7d02b0fdf45079d0f7afcfb6d3158dd60cb09f33
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4object_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index dd75187cc2..99fbd8c94c 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -294,7 +294,7 @@ public: { return vtbl->getIndexed(this, idx, hasProperty); } inline void put(const StringRef name, const ValueRef v) { vtbl->put(this, name, v); } - inline void putIndexed(uint idx, const Value &v) + inline void putIndexed(uint idx, const ValueRef v) { vtbl->putIndexed(this, idx, v); } using Managed::get; using Managed::getIndexed; @@ -313,7 +313,7 @@ protected: static ReturnedValue get(Managed *m, const StringRef name, bool *hasProperty); static ReturnedValue getIndexed(Managed *m, uint index, bool *hasProperty); static void put(Managed *m, const StringRef name, const ValueRef value); - static void putIndexed(Managed *m, uint index, const Value &value); + static void putIndexed(Managed *m, uint index, const ValueRef value); static PropertyAttributes query(const Managed *m, String *name); static PropertyAttributes queryIndexed(const Managed *m, uint index); static bool deleteProperty(Managed *m, String *name); @@ -327,7 +327,7 @@ private: ReturnedValue internalGet(const StringRef name, bool *hasProperty); ReturnedValue internalGetIndexed(uint index, bool *hasProperty); void internalPut(const StringRef name, const ValueRef value); - void internalPutIndexed(uint index, const Value &value); + void internalPutIndexed(uint index, const ValueRef value); bool internalDeleteProperty(String *name); bool internalDeleteIndexedProperty(uint index); |