You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -252,7 +252,7 @@ Array IP::_get_local_addresses() const {
|
||||
Array addresses;
|
||||
List<IPAddress> ip_addresses;
|
||||
get_local_addresses(&ip_addresses);
|
||||
for (IPAddress &E : ip_addresses) {
|
||||
for (const IPAddress &E : ip_addresses) {
|
||||
addresses.push_back(E);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user