From 652fa5b7a44d2d7bb38126b4659e7347caa5d4a8 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Thu, 29 Mar 2012 14:39:35 +1000 Subject: [PATCH] Use metaObjectForType in the v4 compiler. Match usage in the v4 IR builder. Change-Id: Ibc69a01d3948ab3ad0ed5c656e99b13a7edda8fc Reviewed-by: Roberto Raggi --- src/qml/qml/v4/qv4compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/qml/v4/qv4compiler.cpp b/src/qml/qml/v4/qv4compiler.cpp index c9495e8..9354209 100644 --- a/src/qml/qml/v4/qv4compiler.cpp +++ b/src/qml/qml/v4/qv4compiler.cpp @@ -373,7 +373,7 @@ void QV4CompilerPrivate::visitName(IR::Name *e) default: if (propTy == QQmlMetaType::QQuickAnchorLineMetaTypeId()) { regType = PODValueType; - } else if (QQmlMetaType::isQObject(propTy)) { + } else if (engine->metaObjectForType(propTy)) { regType = QObjectStarType; } else { if (qmlVerboseCompiler()) -- 2.7.4