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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user