Merge pull request #102354 from YYF233333/style_iterator

Use iterator pattern instead of manually traverse `List::Element *`
This commit is contained in:
Rémi Verschelde 2025-03-28 14:31:40 +01:00
commit e81eb3f1e9
No known key found for this signature in database
GPG key ID: C3336907360768E1
36 changed files with 150 additions and 173 deletions

View file

@ -1438,8 +1438,8 @@ void ProjectSettings::_add_builtin_input_map() {
Array events;
// Convert list of input events into array
for (List<Ref<InputEvent>>::Element *I = E.value.front(); I; I = I->next()) {
events.push_back(I->get());
for (const Ref<InputEvent> &event : E.value) {
events.push_back(event);
}
Dictionary action;