mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
parent
71c40ff4da
commit
900c676b02
84 changed files with 782 additions and 782 deletions
|
@ -303,8 +303,8 @@ void ShaderCompiler::_dump_function_deps(const SL::ShaderNode *p_node, const Str
|
|||
|
||||
Vector<StringName> uses_functions;
|
||||
|
||||
for (RBSet<StringName>::Element *E = p_node->functions[fidx].uses_function.front(); E; E = E->next()) {
|
||||
uses_functions.push_back(E->get());
|
||||
for (const StringName &E : p_node->functions[fidx].uses_function) {
|
||||
uses_functions.push_back(E);
|
||||
}
|
||||
uses_functions.sort_custom<StringName::AlphCompare>(); //ensure order is deterministic so the same shader is always produced
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue