input/thread: use C++11 initialisers
This commit is contained in:
parent
95e53ac0a0
commit
aee5966e1c
@ -54,17 +54,17 @@ class ThreadInputStream : public InputStream {
|
|||||||
Error postponed_error;
|
Error postponed_error;
|
||||||
|
|
||||||
const size_t buffer_size;
|
const size_t buffer_size;
|
||||||
CircularBuffer<uint8_t> *buffer;
|
CircularBuffer<uint8_t> *buffer = nullptr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shall the stream be closed?
|
* Shall the stream be closed?
|
||||||
*/
|
*/
|
||||||
bool close;
|
bool close = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Has the end of the stream been seen by the thread?
|
* Has the end of the stream been seen by the thread?
|
||||||
*/
|
*/
|
||||||
bool eof;
|
bool eof = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ThreadInputStream(const char *_plugin,
|
ThreadInputStream(const char *_plugin,
|
||||||
@ -72,9 +72,7 @@ public:
|
|||||||
size_t _buffer_size)
|
size_t _buffer_size)
|
||||||
:InputStream(_uri, _mutex, _cond),
|
:InputStream(_uri, _mutex, _cond),
|
||||||
plugin(_plugin),
|
plugin(_plugin),
|
||||||
buffer_size(_buffer_size),
|
buffer_size(_buffer_size) {}
|
||||||
buffer(nullptr),
|
|
||||||
close(false), eof(false) {}
|
|
||||||
|
|
||||||
virtual ~ThreadInputStream();
|
virtual ~ThreadInputStream();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user