aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2014-11-03 20:41:17 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-11-08 19:47:43 +0100
commit5117c8e79c6d3933a0724b78fde9297a03741239 (patch)
treef1711d94d4bbaa4782dba2e3b4ca4127a4239491 /src/qml/jsruntime/qv4script_p.h
parentef8ad8234b481d3985d748f7607ef486e1af086f (diff)
Move more Data members over to the Heap namespace
Change-Id: I74347da3f0f47220bb1f8cf13b872b547fd18a4d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4script_p.h')
-rw-r--r--src/qml/jsruntime/qv4script_p.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4script_p.h b/src/qml/jsruntime/qv4script_p.h
index 337354b38b..3379e204e1 100644
--- a/src/qml/jsruntime/qv4script_p.h
+++ b/src/qml/jsruntime/qv4script_p.h
@@ -71,15 +71,19 @@ struct ContextStateSaver {
}
};
+namespace Heap {
+struct QmlBindingWrapper : Heap::FunctionObject {
+ QmlBindingWrapper(QV4::ExecutionContext *scope, Function *f, QV4::Object *qml);
+ // Constructor for QML functions and signal handlers, resulting binding wrapper is not callable!
+ QmlBindingWrapper(QV4::ExecutionContext *scope, QV4::Object *qml);
+ QV4::Object *qml;
+ QV4::CallContext *qmlContext;
+};
+
+}
+
struct Q_QML_EXPORT QmlBindingWrapper : FunctionObject {
- struct Data : Heap::FunctionObject {
- Data(ExecutionContext *scope, Function *f, QV4::Object *qml);
- // Constructor for QML functions and signal handlers, resulting binding wrapper is not callable!
- Data(ExecutionContext *scope, QV4::Object *qml);
- QV4::Object *qml;
- CallContext *qmlContext;
- };
- V4_OBJECT(FunctionObject)
+ V4_OBJECT2(QmlBindingWrapper, FunctionObject)
static ReturnedValue call(Managed *that, CallData *);
static void markObjects(Heap::Base *m, ExecutionEngine *e);