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:
parent
9a2dca09a3
commit
7a0f14c569
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user