From 2c65f986d678228b972115781e290fdf5b72fad9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jan 2018 21:58:05 +0100 Subject: [PATCH] event/EPoll: use C++11 initializer --- src/event/PollGroupEPoll.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/event/PollGroupEPoll.hxx b/src/event/PollGroupEPoll.hxx index 7b3e0666d..456f377fd 100644 --- a/src/event/PollGroupEPoll.hxx +++ b/src/event/PollGroupEPoll.hxx @@ -33,10 +33,9 @@ class PollResultEPoll friend class PollGroupEPoll; std::array events; - size_t n_events; -public: - PollResultEPoll() : n_events(0) { } + size_t n_events = 0; +public: size_t GetSize() const { return n_events; } unsigned GetEvents(size_t i) const { return events[i].events; } void *GetObject(size_t i) const { return events[i].data.ptr; }