mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue