Cleanup qmlcontextwrapper usage in XHR
authorLars Knoll <lars.knoll@theqtcompany.com>
Wed, 12 Aug 2015 13:08:54 +0000 (15:08 +0200)
committerLars Knoll <lars.knoll@theqtcompany.com>
Thu, 20 Aug 2015 20:01:29 +0000 (20:01 +0000)
commit88cc9b233435f5e9085faefa6e671f1c5e4d2b95
treef9b076329c74d8a1099e3a4cd35f262a46c6663d
parentad55f5fd249296de8871545f6d4cf463bd5ed1c9
Cleanup qmlcontextwrapper usage in XHR

Get rid of the static getContext overload and
simplify the signature of the dispatchCallback
method in XHR.

Get rid of the m_me object, and instead store a
pointer to the thisObject and the context data
directly.

Turn all internal errors into assertions.

Change-Id: I5427b2009c64f54b67cce1c130eace47201624bd
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/qml/qqmlcontextwrapper.cpp
src/qml/qml/qqmlcontextwrapper_p.h
src/qml/qml/qqmlxmlhttprequest.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp