mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 13:51: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
@@ -163,8 +163,8 @@ static void add_char_to_bind_command(wchar_t wc, std::vector<wchar_t> &bind_char
|
||||
static void output_bind_command(std::vector<wchar_t> &bind_chars) {
|
||||
if (!bind_chars.empty()) {
|
||||
std::fputws(L"bind ", stdout);
|
||||
for (size_t i = 0; i < bind_chars.size(); i++) {
|
||||
std::fputws(char_to_symbol(bind_chars[i], true), stdout);
|
||||
for (auto bind_char : bind_chars) {
|
||||
std::fputws(char_to_symbol(bind_char, true), stdout);
|
||||
}
|
||||
std::fputws(L" 'do something'\n", stdout);
|
||||
bind_chars.clear();
|
||||
|
||||
Reference in New Issue
Block a user