From c63b18507d21b8a213c073bced9057b571cdcd7a Mon Sep 17 00:00:00 2001 From: Lightning_A Date: Mon, 9 Aug 2021 14:13:42 -0600 Subject: Use range iterators for `Map` --- modules/bullet/shape_bullet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/bullet/shape_bullet.cpp') diff --git a/modules/bullet/shape_bullet.cpp b/modules/bullet/shape_bullet.cpp index 88ffb9ec67..ec039ba842 100644 --- a/modules/bullet/shape_bullet.cpp +++ b/modules/bullet/shape_bullet.cpp @@ -63,8 +63,8 @@ btCollisionShape *ShapeBullet::prepare(btCollisionShape *p_btShape) const { } void ShapeBullet::notifyShapeChanged() { - for (Map::Element *E = owners.front(); E; E = E->next()) { - ShapeOwnerBullet *owner = static_cast(E->key()); + for (const KeyValue &E : owners) { + ShapeOwnerBullet *owner = static_cast(E.key); owner->shape_changed(owner->find_shape(this)); } } -- cgit v1.2.3