Merge pull request #115646 from Ivorforce/list-explicit-copy
Change `List` copy constructor from implicit to explicit.
This commit is contained in:
commit
1e12317895
20 changed files with 29 additions and 32 deletions
|
|
@ -203,7 +203,7 @@ bool EditorSettings::_get(const StringName &p_name, Variant &r_ret) const {
|
|||
continue;
|
||||
}
|
||||
|
||||
List<Ref<InputEvent>> events = action_override.value;
|
||||
List<Ref<InputEvent>> events(action_override.value);
|
||||
|
||||
Dictionary action_dict;
|
||||
action_dict["name"] = action_override.key;
|
||||
|
|
@ -2210,7 +2210,7 @@ const Array EditorSettings::get_builtin_action_overrides(const String &p_name) c
|
|||
if (AO) {
|
||||
Array event_array;
|
||||
|
||||
List<Ref<InputEvent>> events_list = AO->value;
|
||||
List<Ref<InputEvent>> events_list(AO->value);
|
||||
for (const Ref<InputEvent> &E : events_list) {
|
||||
event_array.push_back(E);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue