aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-01-09 13:28:40 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2015-01-12 11:04:22 +0100
commit455d967025c0485c1dc0d817008de70cdbcd60dd (patch)
tree6f090aa5ed0a2c352ecc3a85786caa7c29742b0c /src/qml/jsruntime/qv4functionobject.cpp
parent3840beb6c61023542a689c7f125a7b521d3b2551 (diff)
Get rid of subtype usage in Function objects
Change-Id: Ic84ddab292cb69e79dac0f2b8a87b96b096360d8 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp6
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);