diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-11 22:45:47 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-18 13:13:38 +0200 |
commit | 2187beaaae09d3cf279f50d1f606ef6077250bfe (patch) | |
tree | c9f175d7ef98a8c94cf4f16fd57bf1b3edd512a7 /src/qml/jsruntime/qv4managed_p.h | |
parent | 6c9f1c8ed93374c16ca6ac540f39e98b451be0d8 (diff) |
Convert lookups to use ReturnedValue
Change-Id: Idbcd1fbd2aa43775ce8c1a3d8fac29a6b58b678a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4managed_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4managed_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4managed_p.h b/src/qml/jsruntime/qv4managed_p.h index 2ffacf6dd5..df25bab64a 100644 --- a/src/qml/jsruntime/qv4managed_p.h +++ b/src/qml/jsruntime/qv4managed_p.h @@ -105,7 +105,7 @@ struct ManagedVTable PropertyAttributes (*queryIndexed)(const Managed *, uint index); bool (*deleteProperty)(Managed *m, String *name); bool (*deleteIndexedProperty)(Managed *m, uint index); - void (*getLookup)(Managed *m, Lookup *l, Value *result); + ReturnedValue (*getLookup)(Managed *m, Lookup *l); void (*setLookup)(Managed *m, Lookup *l, const Value &v); bool (*isEqualTo)(Managed *m, Managed *other); Property *(*advanceIterator)(Managed *m, ObjectIterator *it, String **name, uint *index, PropertyAttributes *attributes); @@ -277,8 +277,8 @@ public: { return vtbl->deleteProperty(this, name); } bool deleteIndexedProperty(uint index) { return vtbl->deleteIndexedProperty(this, index); } - void getLookup(Lookup *l, Value *result) - { vtbl->getLookup(this, l, result); } + ReturnedValue getLookup(Lookup *l) + { return vtbl->getLookup(this, l); } void setLookup(Lookup *l, const Value &v) { vtbl->setLookup(this, l, v); } @@ -291,7 +291,7 @@ public: static bool hasInstance(Managed *that, const Value &value); static ReturnedValue construct(Managed *m, CallData *d); static ReturnedValue call(Managed *m, CallData *); - static void getLookup(Managed *m, Lookup *, Value *); + static ReturnedValue getLookup(Managed *m, Lookup *); static void setLookup(Managed *m, Lookup *l, const Value &v); static bool isEqualTo(Managed *m, Managed *other); |