Move many loops over glcr::Vector to range-based loops.

This commit is contained in:
Drew Galbraith 2024-01-11 17:13:35 -08:00
parent c06d1741f3
commit b2354ae341
7 changed files with 18 additions and 19 deletions

View file

@ -55,9 +55,8 @@ void Terminal::ExecuteCommand(const glcr::String& command) {
if (!files_or.ok()) {
console_.WriteString(glcr::StrFormat("Error: {}\n", files_or.error()));
} else {
auto& files = files_or.value();
for (uint64_t i = 0; i < files.size(); i++) {
console_.WriteString(files[i]);
for (const auto& file : files_or.value()) {
console_.WriteString(file);
console_.WriteChar('\n');
}
}