diff options
author | Albert Astals Cid <aacid@kde.org> | 2012-06-23 09:55:43 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-27 12:46:47 +0200 |
commit | 7a0f14c569e412252c7246d78c07454e04afd6f4 (patch) | |
tree | 505d8e765381d23e90850004399859fe7ed76062 /src/widgets | |
parent | 9a2dca09a369feae94b7e7d79ea9e70a0cbfc196 (diff) |
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>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp b/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp index a935179a2a..3b61f5f49f 100644 --- a/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp +++ b/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp @@ -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; |