mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Add a new HashSet template
* Intended to replace RBSet in most cases. * Optimized for iteration speed
This commit is contained in:
@@ -223,13 +223,13 @@ Error GDScriptCache::finish_compiling(const String &p_owner) {
|
||||
singleton->full_gdscript_cache[p_owner] = script.ptr();
|
||||
singleton->shallow_gdscript_cache.erase(p_owner);
|
||||
|
||||
RBSet<String> depends = singleton->dependencies[p_owner];
|
||||
HashSet<String> depends = singleton->dependencies[p_owner];
|
||||
|
||||
Error err = OK;
|
||||
for (const RBSet<String>::Element *E = depends.front(); E != nullptr; E = E->next()) {
|
||||
for (const String &E : depends) {
|
||||
Error this_err = OK;
|
||||
// No need to save the script. We assume it's already referenced in the owner.
|
||||
get_full_script(E->get(), this_err);
|
||||
get_full_script(E, this_err);
|
||||
|
||||
if (this_err != OK) {
|
||||
err = this_err;
|
||||
|
||||
Reference in New Issue
Block a user