From 7a0f14c569e412252c7246d78c07454e04afd6f4 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 23 Jun 2012 09:55:43 +0200 Subject: 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 Reviewed-by: Robin Burchell --- src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets') 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 &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; -- cgit v1.2.3