You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user