Remove .values() call in foreach

foreach already knows how to iterate over the values without the need to create an intermediate qlist

Change-Id: I4622a36fbdbf536a75f26b42e32488a77d078f02
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
Albert Astals Cid 2012-06-23 09:55:43 +02:00 committed by Qt by Nokia
parent 9a2dca09a3
commit 7a0f14c569

View File

@ -2200,7 +2200,7 @@ static void shiftConstraints(const QList<QSimplexConstraint *> &constraints, qre
for (int i = 0; i < constraints.count(); ++i) {
QSimplexConstraint *c = constraints.at(i);
qreal multiplier = 0;
foreach (qreal v, c->variables.values()) {
foreach (qreal v, c->variables) {
multiplier += v;
}
c->constant += multiplier * amount;