range iteration

This commit is contained in:
James Cherry 2020-01-06 19:36:04 -08:00
parent bba2fe1b7c
commit d7cd36a331
1 changed files with 1 additions and 4 deletions

View File

@ -160,11 +160,8 @@ void
PathGroup::pushEnds(PathEndSeq *path_ends) PathGroup::pushEnds(PathEndSeq *path_ends)
{ {
ensureSortedMaxPaths(); ensureSortedMaxPaths();
PathEndSeq::Iterator iter(path_ends_); for (PathEnd *path_end : path_ends_)
while (iter.hasNext()) {
PathEnd *path_end = iter.next();
path_ends->push_back(path_end); path_ends->push_back(path_end);
}
} }
PathGroupIterator * PathGroupIterator *