1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-29 22:40:33 +08:00

State: Fix shadowed param error

This commit is contained in:
Jesse Rosenstock 2023-08-21 13:38:31 +02:00 committed by GitHub
parent f112198190
commit eb725a8939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,8 +184,8 @@ State::State(std::string name, IterationCount max_iters,
// won't have the flag. Inserting them now also reduces the allocations
// during the benchmark.
if (perf_counters_measurement_) {
for (const std::string& name : perf_counters_measurement_->names()) {
counters[name] = Counter(0.0, Counter::kAvgIterations);
for (const std::string& counter_name : perf_counters_measurement_->names()) {
counters[counter_name] = Counter(0.0, Counter::kAvgIterations);
}
}