1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Use range iterators for RBSet in most cases

This commit is contained in:
Aaron Record
2022-05-18 17:43:40 -06:00
parent 71c40ff4da
commit 900c676b02
84 changed files with 782 additions and 782 deletions

View File

@@ -50,8 +50,8 @@ void Range::_value_changed_notify() {
}
void Range::Shared::emit_value_changed() {
for (RBSet<Range *>::Element *E = owners.front(); E; E = E->next()) {
Range *r = E->get();
for (Range *E : owners) {
Range *r = E;
if (!r->is_inside_tree()) {
continue;
}
@@ -70,8 +70,8 @@ void Range::_validate_values() {
}
void Range::Shared::emit_changed(const char *p_what) {
for (RBSet<Range *>::Element *E = owners.front(); E; E = E->next()) {
Range *r = E->get();
for (Range *E : owners) {
Range *r = E;
if (!r->is_inside_tree()) {
continue;
}