mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Use range iterators for Map
This commit is contained in:
parent
e4dfa69bcf
commit
c63b18507d
154 changed files with 1897 additions and 1897 deletions
|
@ -531,8 +531,8 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
|
||||
memnew_placement(&stack[ADDR_STACK_CLASS], Variant(script));
|
||||
|
||||
for (const Map<int, Variant::Type>::Element *E = temporary_slots.front(); E; E = E->next()) {
|
||||
type_init_function_table[E->get()](&stack[E->key()]);
|
||||
for (const KeyValue<int, Variant::Type> &E : temporary_slots) {
|
||||
type_init_function_table[E.value](&stack[E.key]);
|
||||
}
|
||||
|
||||
String err_text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue