aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4property_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-12-02 12:23:20 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-12-20 07:40:02 +0100
commit295006428628435d300d0ac5e6a4d613430e1c4c (patch)
treeeb487f9597364e649dfeb727808cb71ff66ba310 /src/qml/jsruntime/qv4property_p.h
parentd3a6412c66f62aa045f2856b0bf0ede4af10a984 (diff)
Use a Heap::FunctionObject to store the thrower function
Change-Id: I6b3f03080f35e39d14b377363f7546a9f7260029 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4property_p.h')
-rw-r--r--src/qml/jsruntime/qv4property_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4property_p.h b/src/qml/jsruntime/qv4property_p.h
index 601e3446f4..ef58b4c0f8 100644
--- a/src/qml/jsruntime/qv4property_p.h
+++ b/src/qml/jsruntime/qv4property_p.h
@@ -88,6 +88,10 @@ struct Property {
value = Primitive::fromManaged(reinterpret_cast<Managed *>(getter));
set = Primitive::fromManaged(reinterpret_cast<Managed *>(setter));
}
+ Property(Heap::FunctionObject *getter, Heap::FunctionObject *setter) {
+ value.m = reinterpret_cast<Heap::Base *>(getter);
+ set.m = reinterpret_cast<Heap::Base *>(setter);
+ }
Property &operator=(Value v) { value = v; return *this; }
private:
Property(const Property &);