You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -324,7 +324,7 @@ void EditorSettingsDialog::_update_shortcuts() {
|
||||
List<String> slist;
|
||||
EditorSettings::get_singleton()->get_shortcut_list(&slist);
|
||||
|
||||
for (String &E : slist) {
|
||||
for (const String &E : slist) {
|
||||
Ref<Shortcut> sc = EditorSettings::get_singleton()->get_shortcut(E);
|
||||
if (!sc->has_meta("original")) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user