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; }