lib/nfs/FileReader: use C++11 initializers

This commit is contained in:
Max Kellermann 2017-01-26 09:21:57 +01:00
parent f8eeded528
commit 7af8e3937f

View File

@ -44,15 +44,14 @@ static const size_t NFS_RESUME_AT = 384 * 1024;
class NfsInputStream final : public AsyncInputStream, NfsFileReader {
uint64_t next_offset;
bool reconnect_on_resume, reconnecting;
bool reconnect_on_resume = false, reconnecting = false;
public:
NfsInputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
:AsyncInputStream(io_thread_get(), _uri, _mutex, _cond,
NFS_MAX_BUFFERED,
NFS_RESUME_AT),
NfsFileReader(io_thread_get()),
reconnect_on_resume(false), reconnecting(false) {}
NfsFileReader(io_thread_get()) {}
virtual ~NfsInputStream() {
DeferClose();