another use of auto iterators
This commit is contained in:
parent
5c03ffd6f5
commit
cfbe6b6048
@ -1247,8 +1247,8 @@ Item::add_items_at_point (Duple const point, vector<Item const *>& items) const
|
||||
items.push_back (this);
|
||||
}
|
||||
|
||||
for (vector<Item*>::iterator i = our_items.begin(); i != our_items.end(); ++i) {
|
||||
(*i)->add_items_at_point (point, items);
|
||||
for (const auto & i : our_items) {
|
||||
i->add_items_at_point (point, items);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user