mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
parent
b918c4c3ce
commit
4e6efd1b07
218 changed files with 2755 additions and 3004 deletions
|
|
@ -706,8 +706,8 @@ bool GDScriptUtilityFunctions::function_exists(const StringName &p_function) {
|
|||
}
|
||||
|
||||
void GDScriptUtilityFunctions::get_function_list(List<StringName> *r_functions) {
|
||||
for (const List<StringName>::Element *E = utility_function_name_table.front(); E; E = E->next()) {
|
||||
r_functions->push_back(E->get());
|
||||
for (const StringName &E : utility_function_name_table) {
|
||||
r_functions->push_back(E);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue