diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-23 18:35:22 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-01-23 18:35:22 +0100 |
commit | f3b2a586462f21a883bd71ff97c42911e8adf892 (patch) | |
tree | 734f67034288380b59865ffdbbfb71023ba13ecb /src/lib/upnp | |
parent | c6f89c42b23225a8a721a4a30867091c0acc3fe9 (diff) |
lib/upnp/WorkQueue: use C++11 initializers
Diffstat (limited to 'src/lib/upnp')
-rw-r--r-- | src/lib/upnp/WorkQueue.hxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/upnp/WorkQueue.hxx b/src/lib/upnp/WorkQueue.hxx index 2635449d5..c2f3ae9e1 100644 --- a/src/lib/upnp/WorkQueue.hxx +++ b/src/lib/upnp/WorkQueue.hxx @@ -52,11 +52,11 @@ class WorkQueue { // Status // Worker threads having called exit - unsigned n_workers_exited; - bool ok; + unsigned n_workers_exited = 0; + bool ok = false; - unsigned n_threads; - pthread_t *threads; + unsigned n_threads = 0; + pthread_t *threads = nullptr; // Synchronization std::queue<T> queue; @@ -69,10 +69,7 @@ public: * @param _name for message printing */ WorkQueue(const char *_name) - :name(_name), - n_workers_exited(0), - ok(false), - n_threads(0), threads(nullptr) + :name(_name) { } |