13
0

another use of auto iterators

This commit is contained in:
Paul Davis 2023-01-15 08:36:24 -07:00
parent 5c03ffd6f5
commit cfbe6b6048

View File

@ -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);
}
}