You've already forked godot
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:
@@ -740,8 +740,8 @@ void CodeEdit::set_auto_indent_prefixes(const TypedArray<String> &p_prefixes) {
|
||||
|
||||
TypedArray<String> CodeEdit::get_auto_indent_prefixes() const {
|
||||
TypedArray<String> prefixes;
|
||||
for (const RBSet<char32_t>::Element *E = auto_indent_prefixes.front(); E; E = E->next()) {
|
||||
prefixes.push_back(String::chr(E->get()));
|
||||
for (const char32_t &E : auto_indent_prefixes) {
|
||||
prefixes.push_back(String::chr(E));
|
||||
}
|
||||
return prefixes;
|
||||
}
|
||||
@@ -1752,8 +1752,8 @@ void CodeEdit::set_code_completion_prefixes(const TypedArray<String> &p_prefixes
|
||||
|
||||
TypedArray<String> CodeEdit::get_code_completion_prefixes() const {
|
||||
TypedArray<String> prefixes;
|
||||
for (const RBSet<char32_t>::Element *E = code_completion_prefixes.front(); E; E = E->next()) {
|
||||
prefixes.push_back(String::chr(E->get()));
|
||||
for (const char32_t &E : code_completion_prefixes) {
|
||||
prefixes.push_back(String::chr(E));
|
||||
}
|
||||
return prefixes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user