forked from qt-creator/qt-creator
Tests: Replace foreach with range-based for loops
Change-Id: If813702db78f05701f0ef9378843a474da0aae6a Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -124,7 +124,7 @@ void tst_FindUsages::dump(const QList<Usage> &usages) const
|
|||||||
{
|
{
|
||||||
QTextStream err(stderr, QIODevice::WriteOnly);
|
QTextStream err(stderr, QIODevice::WriteOnly);
|
||||||
err << "DEBUG : " << usages.size() << " usages:" << Qt::endl;
|
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 << ":"
|
err << "DEBUG : " << usage.path << ":" << usage.line << ":" << usage.col << ":"
|
||||||
<< usage.len << ":" << usage.lineText << Qt::endl;
|
<< usage.len << ":" << usage.lineText << Qt::endl;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user