input/async: use C++11 initializers

This commit is contained in:
Max Kellermann
2017-09-19 19:54:07 +02:00
parent 56a9bf459d
commit 99a447dff5
2 changed files with 5 additions and 9 deletions

View File

@@ -46,22 +46,22 @@ class AsyncInputStream : public InputStream {
CircularBuffer<uint8_t> buffer;
const size_t resume_at;
bool open;
bool open = true;
/**
* Is the connection currently paused? That happens when the
* buffer was getting too large. It will be unpaused when the
* buffer is below the threshold again.
*/
bool paused;
bool paused = false;
SeekState seek_state;
SeekState seek_state = SeekState::NONE;
/**
* The #Tag object ready to be requested via
* InputStream::ReadTag().
*/
Tag *tag;
Tag *tag = nullptr;
offset_type seek_offset;