Commit 7af8e393 authored by Max Kellermann's avatar Max Kellermann

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

parent f8eeded5
...@@ -44,15 +44,14 @@ static const size_t NFS_RESUME_AT = 384 * 1024; ...@@ -44,15 +44,14 @@ static const size_t NFS_RESUME_AT = 384 * 1024;
class NfsInputStream final : public AsyncInputStream, NfsFileReader { class NfsInputStream final : public AsyncInputStream, NfsFileReader {
uint64_t next_offset; uint64_t next_offset;
bool reconnect_on_resume, reconnecting; bool reconnect_on_resume = false, reconnecting = false;
public: public:
NfsInputStream(const char *_uri, Mutex &_mutex, Cond &_cond) NfsInputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
:AsyncInputStream(io_thread_get(), _uri, _mutex, _cond, :AsyncInputStream(io_thread_get(), _uri, _mutex, _cond,
NFS_MAX_BUFFERED, NFS_MAX_BUFFERED,
NFS_RESUME_AT), NFS_RESUME_AT),
NfsFileReader(io_thread_get()), NfsFileReader(io_thread_get()) {}
reconnect_on_resume(false), reconnecting(false) {}
virtual ~NfsInputStream() { virtual ~NfsInputStream() {
DeferClose(); DeferClose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment