aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v8/qqmlbuiltinfunctions_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-12-05 14:23:09 +0100
committerLars Knoll <lars.knoll@qt.io>2016-12-09 14:02:20 +0000
commita11be5881a38933d36facfbc4f8baa1becd22546 (patch)
tree15b541a397030862678c7a3ea7abad83603182ef /src/qml/qml/v8/qqmlbuiltinfunctions_p.h
parentef90db10a8c943d4684a98035465e92327513130 (diff)
Directly store the referenced QV4::Function pointer in the binding function
There's no need to store a pointer to the original function here, we can simplify the code when storing the pointer to the QV4::Function directly. Change-Id: I377aaecf56a0118606713c26cc7da4da001766b1 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/v8/qqmlbuiltinfunctions_p.h')
-rw-r--r--src/qml/qml/v8/qqmlbuiltinfunctions_p.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qml/qml/v8/qqmlbuiltinfunctions_p.h b/src/qml/qml/v8/qqmlbuiltinfunctions_p.h
index dc2cd04cbe..fe43532647 100644
--- a/src/qml/qml/v8/qqmlbuiltinfunctions_p.h
+++ b/src/qml/qml/v8/qqmlbuiltinfunctions_p.h
@@ -82,7 +82,6 @@ struct ConsoleObject : Object {
struct QQmlBindingFunction : FunctionObject {
void init(const QV4::FunctionObject *originalFunction);
- Pointer<FunctionObject> originalFunction;
};
}
@@ -179,13 +178,8 @@ struct Q_QML_PRIVATE_EXPORT GlobalExtensions {
struct QQmlBindingFunction : public QV4::FunctionObject
{
V4_OBJECT2(QQmlBindingFunction, FunctionObject)
- V4_NEEDS_DESTROY
QQmlSourceLocation currentLocation() const; // from caller stack trace
-
- static void call(const Managed *that, Scope &scope, CallData *callData);
-
- static void markObjects(Heap::Base *that, ExecutionEngine *e);
};
}