From 615c5170345b2b549be6271d11319a10a5ce34bf Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 29 Dec 2022 01:24:45 +0100 Subject: Use range iterators in LocalVector loops --- servers/rendering/shader_preprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'servers/rendering/shader_preprocessor.cpp') diff --git a/servers/rendering/shader_preprocessor.cpp b/servers/rendering/shader_preprocessor.cpp index ccbf5defa2..97efd2df94 100644 --- a/servers/rendering/shader_preprocessor.cpp +++ b/servers/rendering/shader_preprocessor.cpp @@ -330,8 +330,8 @@ String ShaderPreprocessor::vector_to_string(const LocalVector &p_v, in String ShaderPreprocessor::tokens_to_string(const LocalVector &p_tokens) { LocalVector 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); } -- cgit v1.2.3