Fix for_each_indexed util function

- Fix typo in util function name for_each_indexed.
- Use the overloaded functions for_each_indexed and for_each_pair
  with a container argument where possible to improve readability.
This commit is contained in:
Michael Bell
2021-10-22 12:00:07 +01:00
parent 2c81083406
commit 04c2167c2d
6 changed files with 8 additions and 23 deletions
+2 -2
View File
@@ -747,7 +747,7 @@ ExtractionContainers::ReferencedWays ExtractionContainers::IdentifyManeuverOverr
// Then, populate the values in that hashtable for only the ways
// referenced
util::for_each_indexed(ways_list.cbegin(), ways_list.cend(), set_ids);
util::for_each_indexed(ways_list, set_ids);
TIMER_STOP(identify_maneuver_override_ways);
log << "ok, after " << TIMER_SEC(identify_maneuver_override_ways) << "s";
@@ -972,7 +972,7 @@ ExtractionContainers::ReferencedWays ExtractionContainers::IdentifyRestrictionWa
}
};
util::for_each_indexed(ways_list.cbegin(), ways_list.cend(), set_ids);
util::for_each_indexed(ways_list, set_ids);
TIMER_STOP(identify_restriction_ways);
log << "ok, after " << TIMER_SEC(identify_restriction_ways) << "s";