You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -177,8 +177,8 @@ 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 (List<PropertyInfo>::Element *E = property_list.front(); E; E = E->next()) {
|
||||
MonoString *boxed = GDMonoMarshal::mono_string_from_godot(E->get().name);
|
||||
for (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