mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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
|
@ -3215,8 +3215,8 @@ void VisualShaderEditor::_convert_constants_to_uniforms(bool p_vice_versa) {
|
|||
const RBSet<int> ¤t_set = p_vice_versa ? selected_uniforms : selected_constants;
|
||||
RBSet<String> deleted_names;
|
||||
|
||||
for (RBSet<int>::Element *E = current_set.front(); E; E = E->next()) {
|
||||
int node_id = E->get();
|
||||
for (const int &E : current_set) {
|
||||
int node_id = E;
|
||||
Ref<VisualShaderNode> node = visual_shader->get_node(type_id, node_id);
|
||||
bool caught = false;
|
||||
Variant var;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue