From 0272da65c0abf1f7dd3ab214638b6a4d5d390cc4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 24 Nov 2014 13:49:41 +0000 Subject: [PATCH] Style tweak --- src/event_manager.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/event_manager.cc b/src/event_manager.cc index 8f7395d4..48e85f43 100644 --- a/src/event_manager.cc +++ b/src/event_manager.cc @@ -68,9 +68,8 @@ void EventManager::handle_next_events() std::vector forced; std::swap(forced, m_forced_fd); - for (size_t i = 0; i < events.size(); ++i) + for (auto& event : events) { - auto& event = events[i]; const int fd = event.fd; if (event.revents or contains(forced, fd)) {