You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
@@ -166,15 +166,15 @@ Error EditorFeatureProfile::save_to_file(const String &p_path) {
|
||||
Dictionary data;
|
||||
data["type"] = "feature_profile";
|
||||
Array dis_classes;
|
||||
for (RBSet<StringName>::Element *E = disabled_classes.front(); E; E = E->next()) {
|
||||
dis_classes.push_back(String(E->get()));
|
||||
for (const StringName &E : disabled_classes) {
|
||||
dis_classes.push_back(String(E));
|
||||
}
|
||||
dis_classes.sort();
|
||||
data["disabled_classes"] = dis_classes;
|
||||
|
||||
Array dis_editors;
|
||||
for (RBSet<StringName>::Element *E = disabled_editors.front(); E; E = E->next()) {
|
||||
dis_editors.push_back(String(E->get()));
|
||||
for (const StringName &E : disabled_editors) {
|
||||
dis_editors.push_back(String(E));
|
||||
}
|
||||
dis_editors.sort();
|
||||
data["disabled_editors"] = dis_editors;
|
||||
@@ -182,8 +182,8 @@ Error EditorFeatureProfile::save_to_file(const String &p_path) {
|
||||
Array dis_props;
|
||||
|
||||
for (KeyValue<StringName, RBSet<StringName>> &E : disabled_properties) {
|
||||
for (RBSet<StringName>::Element *F = E.value.front(); F; F = F->next()) {
|
||||
dis_props.push_back(String(E.key) + ":" + String(F->get()));
|
||||
for (const StringName &F : E.value) {
|
||||
dis_props.push_back(String(E.key) + ":" + String(F));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user