Style tweak

This commit is contained in:
Maxime Coste 2014-11-24 13:49:41 +00:00
parent 35b89d5b87
commit 0272da65c0

View File

@ -68,9 +68,8 @@ void EventManager::handle_next_events()
std::vector<int> 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))
{