summaryrefslogtreecommitdiffstats
path: root/tests/servers/rendering/test_shader_preprocessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/servers/rendering/test_shader_preprocessor.h')
-rw-r--r--tests/servers/rendering/test_shader_preprocessor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/servers/rendering/test_shader_preprocessor.h b/tests/servers/rendering/test_shader_preprocessor.h
index d65eb522e8..c8c143641b 100644
--- a/tests/servers/rendering/test_shader_preprocessor.h
+++ b/tests/servers/rendering/test_shader_preprocessor.h
@@ -66,7 +66,7 @@ String remove_spaces(String &p_str) {
for (int n = 0; n < p_str.size(); n++) {
// These test cases only use ASCII.
- auto c = static_cast<unsigned char>(p_str[n]);
+ unsigned char c = static_cast<unsigned char>(p_str[n]);
if (std::isblank(c)) {
has_removed = true;
} else {
@@ -92,7 +92,7 @@ String remove_spaces(String &p_str) {
String compact_spaces(String &p_str) {
Vector<String> lines = p_str.split("\n", false);
erase_all_empty(lines);
- for (auto &line : lines) {
+ for (String &line : lines) {
line = remove_spaces(line);
}
return String("\n").join(lines);