aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-01-27 10:12:43 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-07 10:43:57 +0100
commit927a46b1af9728c770dabb82f0b2233600636d2a (patch)
treee323c9ca76fb766bbb271d03cad399f017555c6e /src/qml/qml/qqmlvmemetaobject.cpp
parent694c083c0f83f02558f148c3b648d35efd9ed3c0 (diff)
Rename Referenced to ManagedRef
First step of removing the templates here and turning this into a class hierarchy. This is required, so we can move all member methods into the Ref classes and make objects movable during GC. Change-Id: Ie14af07fd3e72a7d84a528d0042189ff12ba21bb Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject.cpp')
-rw-r--r--src/qml/qml/qqmlvmemetaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject.cpp b/src/qml/qml/qqmlvmemetaobject.cpp
index 0b966484ca..48893c1b7f 100644
--- a/src/qml/qml/qqmlvmemetaobject.cpp
+++ b/src/qml/qml/qqmlvmemetaobject.cpp
@@ -1086,7 +1086,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::Referenced<QV4::VariantObject> v = newv->asRef<QV4::VariantObject>())
+ if (QV4::ManagedRef<QV4::VariantObject> v = newv)
v->addVmePropertyReference();
// Write the value and emit change signal as appropriate.