From 3fe97384fef6fd7d167017cd950313b34a64c9c1 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 7 May 2013 13:17:57 +0200 Subject: 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 --- src/qml/qml/qqmlbinding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmlbinding.cpp') diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp index 9e1a1522af..b66f053b0f 100644 --- a/src/qml/qml/qqmlbinding.cpp +++ b/src/qml/qml/qqmlbinding.cpp @@ -279,7 +279,7 @@ void QQmlBinding::update(QQmlPropertyPrivate::WriteFlags flags) bool isUndefined = false; v8::Handle result = - QQmlJavaScriptExpression::evaluate(context(), **v4function, &isUndefined); + QQmlJavaScriptExpression::evaluate(context(), v4function.value(), &isUndefined); trace.event("writing binding result"); @@ -320,7 +320,7 @@ QVariant QQmlBinding::evaluate() bool isUndefined = false; v8::Handle result = - QQmlJavaScriptExpression::evaluate(context(), **v4function, &isUndefined); + QQmlJavaScriptExpression::evaluate(context(), v4function.value(), &isUndefined); ep->dereferenceScarceResources(); -- cgit v1.2.3