diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-04-14 15:14:19 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-26 07:50:12 +0000 |
commit | 65f0629144cb6169707c425fd3def9915dec3e45 (patch) | |
tree | e28edcb316ef69fb45c455848323c51d1741ec79 /src/qml/qml/qqmlbinding.cpp | |
parent | 8e85b54f0598834d67d1931af371bb9ab1664738 (diff) |
Cleanup: remove context argument from evaluate methods
We always called evaluate with our own context, so there's no
need to pass it along as an argument.
Change-Id: I3463165eb2947b230c7acf54e7c29dd5d3b8e17c
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlbinding.cpp')
-rw-r--r-- | src/qml/qml/qqmlbinding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp index 2a996f44c0..c895663586 100644 --- a/src/qml/qml/qqmlbinding.cpp +++ b/src/qml/qml/qqmlbinding.cpp @@ -190,7 +190,7 @@ void QQmlBinding::update(QQmlPropertyPrivate::WriteFlags flags) bool isUndefined = false; - QV4::ScopedValue result(scope, QQmlJavaScriptExpression::evaluate(context(), f, &isUndefined)); + QV4::ScopedValue result(scope, QQmlJavaScriptExpression::evaluate(f, &isUndefined)); bool needsErrorLocationData = false; if (!watcher.wasDeleted() && !hasError()) @@ -230,7 +230,7 @@ QVariant QQmlBinding::evaluate() bool isUndefined = false; QV4::ScopedValue f(scope, v4function.value()); - QV4::ScopedValue result(scope, QQmlJavaScriptExpression::evaluate(context(), f, &isUndefined)); + QV4::ScopedValue result(scope, QQmlJavaScriptExpression::evaluate(f, &isUndefined)); ep->dereferenceScarceResources(); |