diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-02-13 14:08:33 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-21 14:21:42 +0000 |
commit | 10942bd94b20bc72dd699425bb0431524148e742 (patch) | |
tree | 3ba63ffaa988db5ad1584ab76759882caf382c5f /src/qml/jsruntime/qv4managed_p.h | |
parent | 331033c77416daf41532fc9ac20cd560428fe648 (diff) |
Remove last asFoo() methods from Managed
Also add some safety checks in case the heap pointer
inside the Value is 0.
Change-Id: I61d37410c10c34f197175dbbd9ea8fa8c95c12cd
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4managed_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4managed_p.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4managed_p.h b/src/qml/jsruntime/qv4managed_p.h index 664bbb3137..a5d941e864 100644 --- a/src/qml/jsruntime/qv4managed_p.h +++ b/src/qml/jsruntime/qv4managed_p.h @@ -150,9 +150,6 @@ public: }; Q_MANAGED_TYPE(Invalid) - BooleanObject *asBooleanObject() { return d()->vtable->type == Type_BooleanObject ? reinterpret_cast<BooleanObject *>(this) : 0; } - ArgumentsObject *asArgumentsObject() { return d()->vtable->type == Type_ArgumentsObject ? reinterpret_cast<ArgumentsObject *>(this) : 0; } - bool isListType() const { return d()->vtable->type == Type_QmlSequence; } bool isArrayObject() const { return d()->vtable->type == Type_ArrayObject; } |