summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-08-12 12:15:47 +0200
committerLars Knoll <lars.knoll@theqtcompany.com>2015-08-20 20:01:18 +0000
commitcc98678f404cd49750076795f39b31bfa36c80c3 (patch)
tree33093822563101f6bdaed5e71677940f01624971 /src/qml/jsruntime/qv4script.cpp
parent6dda1b425867b76fb001b11f43836c56e24ab7a4 (diff)
downloadqtdeclarative-cc98678f404cd49750076795f39b31bfa36c80c3.tar.gz
Use the QmlContext as the scope for QQmlV4Function calls
This further reduces our dependency on the QQmlContextWrapper and reduces storage requirements in the QObjectMethod. Change-Id: I2c12d0a8818d81d45139f482caac8510ad8dfddc Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r--src/qml/jsruntime/qv4script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index 0bf4f21acb..d619c1a7c8 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -379,7 +379,7 @@ ReturnedValue Script::qmlBinding()
return v.asReturnedValue();
}
-QV4::ReturnedValue Script::evaluate(ExecutionEngine *engine, const QString &script, Object *scopeObject)
+QV4::ReturnedValue Script::evaluate(ExecutionEngine *engine, const QString &script, Object *scopeObject)
{
QV4::Scope scope(engine);
QV4::Script qmlScript(engine, scopeObject, script, QString());