diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-04-16 10:29:29 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-27 06:33:27 +0000 |
commit | 0e14a46f60124d9da1101fe7766c7d85e2b72e64 (patch) | |
tree | efb39fcd3950619220bb927c84c174718e38415c /src/qml/qml/qqmlexpression.cpp | |
parent | f8a104432051d182dfc880cea0d4931fcd229204 (diff) |
Move m_function into the base class
Change-Id: I2ebc0ac8f5085157f5d1ec71a1b75559c6a46f8b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlexpression.cpp')
-rw-r--r-- | src/qml/qml/qqmlexpression.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlexpression.cpp b/src/qml/qml/qqmlexpression.cpp index e6fbbd491d..3813281044 100644 --- a/src/qml/qml/qqmlexpression.cpp +++ b/src/qml/qml/qqmlexpression.cpp @@ -250,9 +250,7 @@ QV4::ReturnedValue QQmlExpressionPrivate::v4value(bool *isUndefined) expressionFunctionValid = true; } - QV4::Scope scope(v4); - QV4::ScopedValue f(scope, m_function.value()); - return evaluate(f, isUndefined); + return evaluate(isUndefined); } QVariant QQmlExpressionPrivate::value(bool *isUndefined) |