From: Michael Brasser Date: Thu, 29 Mar 2012 04:39:35 +0000 (+1000) Subject: Use metaObjectForType in the v4 compiler. X-Git-Tag: 071012131707~720 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=652fa5b7a44d2d7bb38126b4659e7347caa5d4a8;p=profile%2Fivi%2Fqtdeclarative.git Use metaObjectForType in the v4 compiler. Match usage in the v4 IR builder. Change-Id: Ibc69a01d3948ab3ad0ed5c656e99b13a7edda8fc Reviewed-by: Roberto Raggi --- 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())