diff options
author | Lars Knoll <[email protected]> | 2017-08-05 00:03:52 +0200 |
---|---|---|
committer | Lars Knoll <[email protected]> | 2017-08-08 18:58:37 +0000 |
commit | f284d73ccece0490b4a227c788b9415a59a38d9c (patch) | |
tree | 729d1b8ef68c941bdda322fa6dc3c17b62d1a69e /src/qml/jsruntime/qv4context.cpp | |
parent | 68a717a9cd5a5b092268eaddd3552becc55c74ab (diff) |
Avoid creating a separate Scope in the ExecutionContextSaver
There's no reason this class should create a scope on it's own.
Change-Id: I93bddea8be42a908a1aca1bcb0ec867aae0d29f8
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index da76da839b..4053eb4f09 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -234,7 +234,7 @@ bool ExecutionContext::deleteProperty(String *name) // Do a standard call with this execution context as the outer scope ReturnedValue ExecutionContext::call(Scope &scope, CallData *callData, Function *function, const FunctionObject *f) { - ExecutionContextSaver ctxSaver(scope); + ExecutionContextSaver ctxSaver(scope.engine); Scoped<CallContext> ctx(scope, newCallContext(function, callData)); if (f) @@ -254,7 +254,7 @@ ReturnedValue QV4::ExecutionContext::simpleCall(Scope &scope, CallData *callData { Q_ASSERT(function->canUseSimpleFunction()); - ExecutionContextSaver ctxSaver(scope); + ExecutionContextSaver ctxSaver(scope.engine); CallContext::Data *ctx = scope.engine->memoryManager->allocSimpleCallContext(); |