From 87963685fb5a6193d0f7f042c5a1195ca79c5d7f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 Feb 2021 15:00:19 +0100 Subject: [PATCH] zeroconf/avahi/Poll: use C++11 initializer --- src/zeroconf/avahi/Poll.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/zeroconf/avahi/Poll.cxx b/src/zeroconf/avahi/Poll.cxx index f0f7fda3e..969b7eeea 100644 --- a/src/zeroconf/avahi/Poll.cxx +++ b/src/zeroconf/avahi/Poll.cxx @@ -44,15 +44,14 @@ struct AvahiWatch final { const AvahiWatchCallback callback; void *const userdata; - AvahiWatchEvent received; + AvahiWatchEvent received = AvahiWatchEvent(0); public: AvahiWatch(EventLoop &_loop, SocketDescriptor _fd, AvahiWatchEvent _event, AvahiWatchCallback _callback, void *_userdata) noexcept :event(_loop, BIND_THIS_METHOD(OnSocketReady), _fd), - callback(_callback), userdata(_userdata), - received(AvahiWatchEvent(0)) { + callback(_callback), userdata(_userdata) { event.Schedule(FromAvahiWatchEvent(_event)); }