You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
@@ -360,8 +360,8 @@ void ProjectSettings::_get_property_list(List<PropertyInfo> *p_list) const {
|
||||
vclist.insert(vc);
|
||||
}
|
||||
|
||||
for (RBSet<_VCSort>::Element *E = vclist.front(); E; E = E->next()) {
|
||||
String prop_info_name = E->get().name;
|
||||
for (const _VCSort &E : vclist) {
|
||||
String prop_info_name = E.name;
|
||||
int dot = prop_info_name.find(".");
|
||||
if (dot != -1 && !custom_prop_info.has(prop_info_name)) {
|
||||
prop_info_name = prop_info_name.substr(0, dot);
|
||||
@@ -369,11 +369,11 @@ void ProjectSettings::_get_property_list(List<PropertyInfo> *p_list) const {
|
||||
|
||||
if (custom_prop_info.has(prop_info_name)) {
|
||||
PropertyInfo pi = custom_prop_info[prop_info_name];
|
||||
pi.name = E->get().name;
|
||||
pi.usage = E->get().flags;
|
||||
pi.name = E.name;
|
||||
pi.usage = E.flags;
|
||||
p_list->push_back(pi);
|
||||
} else {
|
||||
p_list->push_back(PropertyInfo(E->get().type, E->get().name, PROPERTY_HINT_NONE, "", E->get().flags));
|
||||
p_list->push_back(PropertyInfo(E.type, E.name, PROPERTY_HINT_NONE, "", E.flags));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -959,9 +959,9 @@ Error ProjectSettings::save_custom(const String &p_path, const CustomMap &p_cust
|
||||
|
||||
RBMap<String, List<String>> props;
|
||||
|
||||
for (RBSet<_VCSort>::Element *E = vclist.front(); E; E = E->next()) {
|
||||
String category = E->get().name;
|
||||
String name = E->get().name;
|
||||
for (const _VCSort &E : vclist) {
|
||||
String category = E.name;
|
||||
String name = E.name;
|
||||
|
||||
int div = category.find("/");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user