Merge pull request #115093 from Ivorforce/hashmap-explicit-copy

Change copy constructors of `HashMap` and `AHashMap` from implicit to explicit
This commit is contained in:
Rémi Verschelde 2026-01-31 22:50:51 +01:00
commit 429750f60b
No known key found for this signature in database
GPG key ID: C3336907360768E1
30 changed files with 34 additions and 35 deletions

View file

@ -49,7 +49,7 @@
namespace GDScriptTests {
void init_autoloads() {
HashMap<StringName, ProjectSettings::AutoloadInfo> autoloads = ProjectSettings::get_singleton()->get_autoload_list();
HashMap<StringName, ProjectSettings::AutoloadInfo> autoloads(ProjectSettings::get_singleton()->get_autoload_list());
// First pass, add the constants so they exist before any script is loaded.
for (const KeyValue<StringName, ProjectSettings::AutoloadInfo> &E : ProjectSettings::get_singleton()->get_autoload_list()) {