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:
parent
1f8a441ace
commit
438adf4c4c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user