Change HashSet copy constructor from implicit to explicit.
This commit is contained in:
@@ -259,7 +259,7 @@ void GDScriptCache::remove_parser(const String &p_path) {
|
||||
singleton->parser_map.erase(p_path);
|
||||
|
||||
// Have to copy while iterating, because parser_inverse_dependencies is modified.
|
||||
HashSet<String> ideps = singleton->parser_inverse_dependencies[p_path];
|
||||
HashSet<String> ideps(singleton->parser_inverse_dependencies[p_path]);
|
||||
singleton->parser_inverse_dependencies.erase(p_path);
|
||||
for (String idep_path : ideps) {
|
||||
remove_parser(idep_path);
|
||||
@@ -427,7 +427,7 @@ Error GDScriptCache::finish_compiling(const String &p_owner) {
|
||||
singleton->full_gdscript_cache[p_owner] = script;
|
||||
singleton->shallow_gdscript_cache.erase(p_owner);
|
||||
|
||||
HashSet<String> depends = singleton->dependencies[p_owner];
|
||||
HashSet<String> depends(singleton->dependencies[p_owner]);
|
||||
|
||||
Error err = OK;
|
||||
for (const String &E : depends) {
|
||||
|
||||
Reference in New Issue
Block a user