zeroconf/avahi/Poll: use C++11 initializer
This commit is contained in:
parent
0405a57f26
commit
87963685fb
@ -44,15 +44,14 @@ struct AvahiWatch final {
|
|||||||
const AvahiWatchCallback callback;
|
const AvahiWatchCallback callback;
|
||||||
void *const userdata;
|
void *const userdata;
|
||||||
|
|
||||||
AvahiWatchEvent received;
|
AvahiWatchEvent received = AvahiWatchEvent(0);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AvahiWatch(EventLoop &_loop,
|
AvahiWatch(EventLoop &_loop,
|
||||||
SocketDescriptor _fd, AvahiWatchEvent _event,
|
SocketDescriptor _fd, AvahiWatchEvent _event,
|
||||||
AvahiWatchCallback _callback, void *_userdata) noexcept
|
AvahiWatchCallback _callback, void *_userdata) noexcept
|
||||||
:event(_loop, BIND_THIS_METHOD(OnSocketReady), _fd),
|
:event(_loop, BIND_THIS_METHOD(OnSocketReady), _fd),
|
||||||
callback(_callback), userdata(_userdata),
|
callback(_callback), userdata(_userdata) {
|
||||||
received(AvahiWatchEvent(0)) {
|
|
||||||
event.Schedule(FromAvahiWatchEvent(_event));
|
event.Schedule(FromAvahiWatchEvent(_event));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user