From e31541fa6f5f4df64fd44a9a895491c40b8c64b4 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 26 Jan 2016 14:38:54 +0100 Subject: qmake: eradicate Q_FOREACH loops [needing qAsConst()] ... by replacing them with C++11 range-for loops. To avoid detaches of these mutable Qt containers, wrap the container in qAsConst(). Change-Id: If086bea06fe26232a7bb99fad8b09fce4dc74c27 Reviewed-by: Lars Knoll --- qmake/project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qmake/project.cpp') diff --git a/qmake/project.cpp b/qmake/project.cpp index 3b7f28edbc..582b05a11f 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -152,7 +152,7 @@ void QMakeProject::dump() const } } out.sort(); - foreach (const QString &v, out) + for (const QString &v : qAsConst(out)) puts(qPrintable(v)); } -- cgit v1.2.3