diff options
author | Lars Knoll <[email protected]> | 2015-01-09 13:28:40 +0100 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2015-01-12 11:04:22 +0100 |
commit | 455d967025c0485c1dc0d817008de70cdbcd60dd (patch) | |
tree | 6f090aa5ed0a2c352ecc3a85786caa7c29742b0c /src/qml/jsruntime/qv4functionobject.cpp | |
parent | 3840beb6c61023542a689c7f125a7b521d3b2551 (diff) |
Get rid of subtype usage in Function objects
Change-Id: Ic84ddab292cb69e79dac0f2b8a87b96b096360d8
Reviewed-by: Robin Burchell <[email protected]>
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 3b0d723988..e74acf78d4 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -206,6 +206,11 @@ bool FunctionObject::isBinding() const return d()->internalClass->vtable == QQmlBindingFunction::staticVTable(); } +bool FunctionObject::isBoundFunction() const +{ + return d()->internalClass->vtable == BoundFunction::staticVTable(); +} + DEFINE_OBJECT_VTABLE(FunctionCtor); Heap::FunctionCtor::FunctionCtor(QV4::ExecutionContext *scope) @@ -623,7 +628,6 @@ Heap::BoundFunction::BoundFunction(QV4::ExecutionContext *scope, QV4::FunctionOb { this->boundThis = boundThis; setVTable(QV4::BoundFunction::staticVTable()); - subtype = FunctionObject::BoundFunction; Scope s(scope); ScopedObject f(s, this); |