Use C++ iterators for Lists in many situations
This commit is contained in:
4
thirdparty/enet/godot.cpp
vendored
4
thirdparty/enet/godot.cpp
vendored
@@ -353,8 +353,8 @@ public:
|
||||
}
|
||||
|
||||
// Remove disconnected peers from map.
|
||||
for (List<String>::Element *E = remove.front(); E; E = E->next()) {
|
||||
peers.erase(E->get());
|
||||
for (String &E : remove) {
|
||||
peers.erase(E);
|
||||
}
|
||||
|
||||
return err; // OK, ERR_BUSY, or possibly an error.
|
||||
|
||||
Reference in New Issue
Block a user