You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -100,8 +100,8 @@ Vector<String> SpriteFrames::_get_animation_list() const {
|
||||
Vector<String> ret;
|
||||
List<StringName> al;
|
||||
get_animation_list(&al);
|
||||
for (List<StringName>::Element *E = al.front(); E; E = E->next()) {
|
||||
ret.push_back(E->get());
|
||||
for (StringName &E : al) {
|
||||
ret.push_back(E);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user