You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -177,7 +177,7 @@ MonoArray *godot_icall_DynamicGodotObject_SetMemberList(Object *p_ptr) {
|
||||
MonoArray *result = mono_array_new(mono_domain_get(), CACHED_CLASS_RAW(String), property_list.size());
|
||||
|
||||
int i = 0;
|
||||
for (PropertyInfo &E : property_list) {
|
||||
for (const PropertyInfo &E : property_list) {
|
||||
MonoString *boxed = GDMonoMarshal::mono_string_from_godot(E.name);
|
||||
mono_array_setref(result, i, boxed);
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user