aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4globalobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <[email protected]>2017-08-30 14:38:01 +0200
committerLars Knoll <[email protected]>2017-09-01 12:30:30 +0000
commit50828bc6ed9112956170a68dffe72431a21fddd9 (patch)
tree60cd60e614516fb77fe27fe7dc9a4f453b6e2b31 /src/qml/jsruntime/qv4globalobject.cpp
parent85fe2814a1397a17804d8eace4a70e5b7df854b6 (diff)
Use the context member in CallData
Store the current context in the context member instead of passing it along as arguments. Change-Id: If3dd0d32eddb2a02bcbf65fe6e8d15142403170e Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4globalobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4globalobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp
index bd8e747c41..08bae8fe02 100644
--- a/src/qml/jsruntime/qv4globalobject.cpp
+++ b/src/qml/jsruntime/qv4globalobject.cpp
@@ -388,7 +388,8 @@ ReturnedValue EvalFunction::evalCall(CallData *callData, bool directCall) const
ScopedCallData cData(scope);
cData->thisObject = scope.engine->currentStackFrame->thisObject();
- return function->execute(ctx->d(), cData);
+ cData->context = *ctx;
+ return function->execute(cData);
}