mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 01:11:15 -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
@@ -192,8 +192,8 @@ wcstring event_get_desc(const event_t &evt) {
|
||||
#if 0
|
||||
static void show_all_handlers(void) {
|
||||
std::fwprintf(stdout, L"event handlers:\n");
|
||||
for (event_list_t::const_iterator iter = events.begin(); iter != events.end(); ++iter) {
|
||||
const event_t *foo = *iter;
|
||||
for (const auto& event : events) {
|
||||
auto foo = event;
|
||||
wcstring tmp = event_get_desc(foo);
|
||||
std::fwprintf(stdout, L" handler now %ls\n", tmp.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user