diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-10-20 16:00:56 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-07 09:00:37 +0000 |
commit | a59d9a7eacea3614462eb910e03351cbb9d34b75 (patch) | |
tree | 6ccb0dedfc7fd12279183aa5e5f15413c0b5e7df /src/qml/qml/qqmlxmlhttprequest.cpp | |
parent | 98271afabd409defee3b1f09158e64fabbc35070 (diff) |
Get rid of JSCallData::call()
Change-Id: I6b99e9a7102b3dcb6a7699f54b6456eba6248699
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r-- | src/qml/qml/qqmlxmlhttprequest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index b22fe7b5ea..35c6d2f0b7 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -1576,7 +1576,8 @@ void QQmlXMLHttpRequest::dispatchCallback(Object *thisObj, QQmlContextData *cont return; } - QV4::JSCallData(scope, callback).call(); + QV4::JSCallData jsCallData(scope, callback); + callback->call(jsCallData); if (scope.engine->hasException) { QQmlError error = scope.engine->catchExceptionAsQmlError(); |