From d2408fd3894cead458263860036004fa147525b9 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 23 Nov 2022 22:49:03 +0100 Subject: [PATCH] Tests: Replace foreach with range-based for loops Change-Id: If813702db78f05701f0ef9378843a474da0aae6a Reviewed-by: hjk Reviewed-by: --- tests/auto/cplusplus/findusages/tst_findusages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/cplusplus/findusages/tst_findusages.cpp b/tests/auto/cplusplus/findusages/tst_findusages.cpp index 1cb09810306..21950ae193f 100644 --- a/tests/auto/cplusplus/findusages/tst_findusages.cpp +++ b/tests/auto/cplusplus/findusages/tst_findusages.cpp @@ -124,7 +124,7 @@ void tst_FindUsages::dump(const QList &usages) const { QTextStream err(stderr, QIODevice::WriteOnly); err << "DEBUG : " << usages.size() << " usages:" << Qt::endl; - foreach (const Usage &usage, usages) { + for (const Usage &usage : usages) { err << "DEBUG : " << usage.path << ":" << usage.line << ":" << usage.col << ":" << usage.len << ":" << usage.lineText << Qt::endl; }