mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Use range iterators in LocalVector loops
This commit is contained in:
parent
277d5361df
commit
615c517034
41 changed files with 409 additions and 503 deletions
|
@ -330,8 +330,8 @@ String ShaderPreprocessor::vector_to_string(const LocalVector<char32_t> &p_v, in
|
|||
|
||||
String ShaderPreprocessor::tokens_to_string(const LocalVector<Token> &p_tokens) {
|
||||
LocalVector<char32_t> result;
|
||||
for (uint32_t i = 0; i < p_tokens.size(); i++) {
|
||||
result.push_back(p_tokens[i].text);
|
||||
for (const Token &token : p_tokens) {
|
||||
result.push_back(token.text);
|
||||
}
|
||||
return vector_to_string(result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue