From aee5966e1c59d6793d6999ae9452c95cd0af60ee Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Jun 2016 19:10:39 +0200 Subject: [PATCH] input/thread: use C++11 initialisers --- src/input/ThreadInputStream.hxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/input/ThreadInputStream.hxx b/src/input/ThreadInputStream.hxx index dd7669e80..3756b7c56 100644 --- a/src/input/ThreadInputStream.hxx +++ b/src/input/ThreadInputStream.hxx @@ -54,17 +54,17 @@ class ThreadInputStream : public InputStream { Error postponed_error; const size_t buffer_size; - CircularBuffer *buffer; + CircularBuffer *buffer = nullptr; /** * Shall the stream be closed? */ - bool close; + bool close = false; /** * Has the end of the stream been seen by the thread? */ - bool eof; + bool eof = false; public: ThreadInputStream(const char *_plugin, @@ -72,9 +72,7 @@ public: size_t _buffer_size) :InputStream(_uri, _mutex, _cond), plugin(_plugin), - buffer_size(_buffer_size), - buffer(nullptr), - close(false), eof(false) {} + buffer_size(_buffer_size) {} virtual ~ThreadInputStream();