1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-29 06:20:32 +08:00

use range based for loop

This commit is contained in:
Eric Fiselier 2015-03-12 16:08:59 -04:00
parent 1f8a441ace
commit 438adf4c4c

View File

@ -784,11 +784,9 @@ void ConsoleReporter::ReportRuns(
return;
}
for (std::vector<Run>::const_iterator it = reports.begin();
it != reports.end();
it++) {
CHECK_EQ(reports[0].benchmark_name, it->benchmark_name);
PrintRunData(*it);
for (Run const& run : reports) {
CHECK_EQ(reports[0].benchmark_name, run.benchmark_name);
PrintRunData(run);
}
if (reports.size() < 2) {