[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:
Rosen Penev
2019-11-19 13:46:47 -08:00
committed by ridiculousfish
parent 1055ff321c
commit 586ac3dfa7
27 changed files with 85 additions and 105 deletions

View File

@@ -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());
}