diff options
-rw-r--r-- | src/qml/qml/qqmlxmlhttprequest.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index c70129775c..afa79ee6b1 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -872,13 +872,9 @@ bool Node::isNull() const ReturnedValue NamedNodeMap::getIndexed(Managed *m, uint index, bool *hasProperty) { - NamedNodeMap *r = m->as<NamedNodeMap>(); + Q_ASSERT(m->as<NamedNodeMap>()); + NamedNodeMap *r = static_cast<NamedNodeMap *>(m); QV4::ExecutionEngine *v4 = r->engine(); - if (!r) { - if (hasProperty) - *hasProperty = false; - return v4->throwTypeError(); - } if ((int)index < r->d()->list.count()) { if (hasProperty) |