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; }