aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmllistmodel_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-03-29 14:11:38 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-29 21:20:32 +0100
commit61e519e230217aa32869ed70fc38ee947fb9b313 (patch)
treee39ee106dbeb8b493d1d836d394e4ed7d6d709b1 /src/qml/types/qqmllistmodel_p.h
parentabbb5c2bd9e1701c07d59d47e3f401a84537cc75 (diff)
Eliminate noop translation bindings
We can store them as regular strings. This has the advantage that the entire special handling from the custom parser of the list model goes away, we don't need astForBinding in QQmlCustomParser anymore neither and types with a custom parser can now generally benefit from the expression simplification pass. Change-Id: I39d1b76edd1273d8c73b847aed71f7bcce37d877 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/types/qqmllistmodel_p.h')
-rw-r--r--src/qml/types/qqmllistmodel_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/types/qqmllistmodel_p.h b/src/qml/types/qqmllistmodel_p.h
index 17fbb8a819..c41983eaed 100644
--- a/src/qml/types/qqmllistmodel_p.h
+++ b/src/qml/types/qqmllistmodel_p.h
@@ -183,7 +183,7 @@ private:
int instrCount;
ListInstruction *instructions() const;
};
- bool compileProperty(const QV4::CompiledData::QmlUnit *qmlUnit, int objectIndex, const QV4::CompiledData::Binding *binding, QList<ListInstruction> &instr, QByteArray &data);
+ bool compileProperty(const QV4::CompiledData::QmlUnit *qmlUnit, const QV4::CompiledData::Binding *binding, QList<ListInstruction> &instr, QByteArray &data);
bool definesEmptyList(const QString &);