Move many loops over glcr::Vector to range-based loops.
This commit is contained in:
parent
c06d1741f3
commit
b2354ae341
7 changed files with 18 additions and 19 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue