event/MultiSocketMonitor: use C++11 initializer

This commit is contained in:
Max Kellermann 2017-02-09 20:45:29 +01:00
parent e92e5e8eb8
commit 4b30ef1cf2
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
#endif #endif
MultiSocketMonitor::MultiSocketMonitor(EventLoop &_loop) MultiSocketMonitor::MultiSocketMonitor(EventLoop &_loop)
:IdleMonitor(_loop), TimeoutMonitor(_loop), ready(false) { :IdleMonitor(_loop), TimeoutMonitor(_loop) {
} }
MultiSocketMonitor::~MultiSocketMonitor() MultiSocketMonitor::~MultiSocketMonitor()

View File

@ -99,7 +99,7 @@ class MultiSocketMonitor : IdleMonitor, TimeoutMonitor
/** /**
* DispatchSockets() should be called. * DispatchSockets() should be called.
*/ */
bool ready; bool ready = false;
/** /**
* PrepareSockets() should be called. * PrepareSockets() should be called.