mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 00:01:16 -03:00
[clang-tidy] Convert loops to range based
Found with modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
1055ff321c
commit
586ac3dfa7
@@ -99,7 +99,7 @@ int builtin_command(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
||||
const wchar_t *command_name = argv[idx];
|
||||
if (opts.all_paths) {
|
||||
wcstring_list_t paths = path_get_paths(command_name, parser.vars());
|
||||
for (auto path : paths) {
|
||||
for (const auto &path : paths) {
|
||||
if (!opts.quiet) streams.out.append_format(L"%ls\n", path.c_str());
|
||||
++found;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user