mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -269,7 +269,7 @@ _FORCE_INLINE_ Error NetSocketPosix::_change_multicast_group(IPAddress p_ip, Str
|
||||
break; // IPv6 uses index.
|
||||
}
|
||||
|
||||
for (IPAddress &F : c.ip_addresses) {
|
||||
for (const IPAddress &F : c.ip_addresses) {
|
||||
if (!F.is_ipv4()) {
|
||||
continue; // Wrong IP type
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user