aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcontextwrapper_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-08-12 15:08:54 +0200
committerLars Knoll <lars.knoll@theqtcompany.com>2015-08-20 20:01:29 +0000
commit88cc9b233435f5e9085faefa6e671f1c5e4d2b95 (patch)
treef9b076329c74d8a1099e3a4cd35f262a46c6663d /src/qml/qml/qqmlcontextwrapper_p.h
parentad55f5fd249296de8871545f6d4cf463bd5ed1c9 (diff)
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>
Diffstat (limited to 'src/qml/qml/qqmlcontextwrapper_p.h')
-rw-r--r--src/qml/qml/qqmlcontextwrapper_p.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcontextwrapper_p.h b/src/qml/qml/qqmlcontextwrapper_p.h
index cbba35f5d1..192df9aed6 100644
--- a/src/qml/qml/qqmlcontextwrapper_p.h
+++ b/src/qml/qml/qqmlcontextwrapper_p.h
@@ -92,7 +92,6 @@ struct Q_QML_EXPORT QmlContextWrapper : Object
inline QObject *getScopeObject() const { return d()->scopeObject; }
inline QQmlContextData *getContext() const { return d()->context; }
- static QQmlContextData *getContext(const Value &value);
void setReadOnly(bool b) { d()->readOnly = b; }