summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-09 20:45:29 +0100
committerMax Kellermann <max@musicpd.org>2017-02-09 21:12:23 +0100
commit4b30ef1cf216df3d5395033c2ad7cfaff4aeaa51 (patch)
tree0596dd93699e6b42444e6f0fda73c1eab0d6b313
parente92e5e8eb8a40ea2383e4117ee7756dc6c118a21 (diff)
event/MultiSocketMonitor: use C++11 initializer
-rw-r--r--src/event/MultiSocketMonitor.cxx2
-rw-r--r--src/event/MultiSocketMonitor.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/event/MultiSocketMonitor.cxx b/src/event/MultiSocketMonitor.cxx
index aa8450da8..9a28dd71d 100644
--- a/src/event/MultiSocketMonitor.cxx
+++ b/src/event/MultiSocketMonitor.cxx
@@ -28,7 +28,7 @@
#endif
MultiSocketMonitor::MultiSocketMonitor(EventLoop &_loop)
- :IdleMonitor(_loop), TimeoutMonitor(_loop), ready(false) {
+ :IdleMonitor(_loop), TimeoutMonitor(_loop) {
}
MultiSocketMonitor::~MultiSocketMonitor()
diff --git a/src/event/MultiSocketMonitor.hxx b/src/event/MultiSocketMonitor.hxx
index f138fa31c..d6c400b9e 100644
--- a/src/event/MultiSocketMonitor.hxx
+++ b/src/event/MultiSocketMonitor.hxx
@@ -99,7 +99,7 @@ class MultiSocketMonitor : IdleMonitor, TimeoutMonitor
/**
* DispatchSockets() should be called.
*/
- bool ready;
+ bool ready = false;
/**
* PrepareSockets() should be called.