aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlexpression.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-07 13:17:57 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-07 13:31:11 +0200
commit3fe97384fef6fd7d167017cd950313b34a64c9c1 (patch)
tree6213d12c923924e6f3442c9deee1850f25146d36 /src/qml/qml/qqmlexpression.cpp
parent78fc64d11c187a796e6b80bd1f35792e202fa9f9 (diff)
Make the default constructor of PersistentValue not allocate a d pointer
This is also required to change the v8::Persistent in QQmlData over to v4. Change-Id: Ib3164ded9c772e977f6b43ef6163a3aa74da3800 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlexpression.cpp')
-rw-r--r--src/qml/qml/qqmlexpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlexpression.cpp b/src/qml/qml/qqmlexpression.cpp
index 0f225228b3..32dbbb0e6c 100644
--- a/src/qml/qml/qqmlexpression.cpp
+++ b/src/qml/qml/qqmlexpression.cpp
@@ -354,7 +354,7 @@ v8::Handle<v8::Value> QQmlExpressionPrivate::v8value(bool *isUndefined)
expressionFunctionValid = true;
}
- return evaluate(context(), **v8function, isUndefined);
+ return evaluate(context(), v8function.value(), isUndefined);
}
QVariant QQmlExpressionPrivate::value(bool *isUndefined)