diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-30 22:41:12 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-02 16:07:33 +0200 |
commit | d49cc03df130353665edd89112fd4e1f3cdab9b6 (patch) | |
tree | cc55f49b6a2bc6b3b94e47fbdebe9d87f4857a07 /src/qml/qml/qqmlvmemetaobject.cpp | |
parent | ac8afca822031f3039dce31525a6ab48c741e73b (diff) |
Use SafeValue instead of Value in ScopedValue methods
Change-Id: Ie463efe600d498ce77d4b9e8b48abcfd61c1ab78
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject.cpp')
-rw-r--r-- | src/qml/qml/qqmlvmemetaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject.cpp b/src/qml/qml/qqmlvmemetaobject.cpp index dfba6bb3b6..ecc6287823 100644 --- a/src/qml/qml/qqmlvmemetaobject.cpp +++ b/src/qml/qml/qqmlvmemetaobject.cpp @@ -1085,7 +1085,7 @@ void QQmlVMEMetaObject::writeProperty(int id, const QVariant &value) // And, if the new value is a scarce resource, we need to ensure that it does not get // automatically released by the engine until no other references to it exist. QV4::ScopedValue newv(scope, QQmlEnginePrivate::get(ctxt->engine)->v8engine()->fromVariant(value)); - if (QV4::VariantObject *v = newv->as<QV4::VariantObject>()) + if (QV4::Referenced<QV4::VariantObject> v = newv->asRef<QV4::VariantObject>()) v->addVmePropertyReference(); // Write the value and emit change signal as appropriate. |