You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Remove uses of auto for better readability and online code reviews
The current code style guidelines forbid the use of `auto`. Some uses of `auto` are still present, such as in UWP code (which can't be currently tested) and macros (where removing `auto` isn't easy).
This commit is contained in:
@@ -441,7 +441,7 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {
|
||||
result.output = get_text_for_status(result.status) + "\n";
|
||||
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (auto *E = errors.front(); E; E = E->next()) {
|
||||
for (const List<GDScriptParser::ParserError>::Element *E = errors.front(); E; E = E->next()) {
|
||||
result.output += E->get().message + "\n"; // TODO: line, column?
|
||||
break; // Only the first error since the following might be cascading.
|
||||
}
|
||||
@@ -460,7 +460,7 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {
|
||||
result.output = get_text_for_status(result.status) + "\n";
|
||||
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (auto *E = errors.front(); E; E = E->next()) {
|
||||
for (const List<GDScriptParser::ParserError>::Element *E = errors.front(); E; E = E->next()) {
|
||||
result.output += E->get().message + "\n"; // TODO: line, column?
|
||||
break; // Only the first error since the following might be cascading.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user