From 06479ddfe3a9319fd371cd50f4d2f2316d51055a Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 2 Mar 2014 20:35:57 +0100 Subject: [new compiler] Add the correct object index to the custom parser Without the correct index the calls to astForBinding run out of bounds. Fixes tst_qqmllistmodel crash. Change-Id: I6fb8b77866cbf247e7373cdbece6833c92be3615 Reviewed-by: Lars Knoll --- src/qml/types/qqmlconnections.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qml/types/qqmlconnections.cpp') diff --git a/src/qml/types/qqmlconnections.cpp b/src/qml/types/qqmlconnections.cpp index b8920deb21..70f859ffe2 100644 --- a/src/qml/types/qqmlconnections.cpp +++ b/src/qml/types/qqmlconnections.cpp @@ -251,8 +251,9 @@ QQmlConnectionsParser::compile(const QList &props) return rv; } -QByteArray QQmlConnectionsParser::compile(const QV4::CompiledData::QmlUnit *qmlUnit, const QList &props) +QByteArray QQmlConnectionsParser::compile(const QV4::CompiledData::QmlUnit *qmlUnit, int objectIndex, const QList &props) { + Q_UNUSED(objectIndex) QByteArray rv; QDataStream ds(&rv, QIODevice::WriteOnly); -- cgit v1.2.3