diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-01-09 13:28:40 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2015-01-12 11:04:22 +0100 |
commit | 455d967025c0485c1dc0d817008de70cdbcd60dd (patch) | |
tree | 6f090aa5ed0a2c352ecc3a85786caa7c29742b0c /src/qml/jsruntime/qv4runtime.cpp | |
parent | 3840beb6c61023542a689c7f125a7b521d3b2551 (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/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index 7338b8abbe..61a2fc5fd3 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -318,7 +318,7 @@ QV4::ReturnedValue Runtime::instanceof(ExecutionEngine *engine, const ValueRef l if (!f) return engine->throwTypeError(); - if (f->subtype() == Heap::FunctionObject::BoundFunction) + if (f->isBoundFunction()) f = static_cast<BoundFunction *>(f.getPointer())->target(); ScopedObject v(scope, left->asObject()); |