aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlexpression.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-06-10 14:22:08 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-18 16:42:30 +0000
commitd475e72dc469dc6d442a36588e19a3e7eca48394 (patch)
tree962b24bcf8079f6821bc93af7fbe177a4442ff02 /src/qml/qml/qqmlexpression.cpp
parent1d76a5d3eab1a071fa35b2668bb09c4adfc41e01 (diff)
Smaller cleanup to QQmlJavaScriptExpression
Clean up some of the code to create binding expressions. Change-Id: I1cd826685713b44166c58b114fa91135a664591d Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlexpression.cpp')
-rw-r--r--src/qml/qml/qqmlexpression.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/qml/qqmlexpression.cpp b/src/qml/qml/qqmlexpression.cpp
index e4a36f7580..332b99ee8f 100644
--- a/src/qml/qml/qqmlexpression.cpp
+++ b/src/qml/qml/qqmlexpression.cpp
@@ -241,12 +241,8 @@ void QQmlExpression::setExpression(const QString &expression)
// Must be called with a valid handle scope
QV4::ReturnedValue QQmlExpressionPrivate::v4value(bool *isUndefined)
{
- Q_Q(QQmlExpression);
-
- QV4::ExecutionEngine *v4 = QQmlEnginePrivate::get(q->engine())->v4engine();
-
if (!expressionFunctionValid) {
- m_function.set(v4, qmlBinding(context(), scopeObject(), expression, url, line));
+ createQmlBinding(context(), scopeObject(), expression, url, line);
expressionFunctionValid = true;
}