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

This commit is contained in:
Max Kellermann
2017-11-10 21:03:41 +01:00
parent 0db7a0c9e2
commit 4c1d29c86c
3 changed files with 4 additions and 5 deletions

View File

@@ -33,7 +33,7 @@
#include <sys/stat.h>
NfsFileReader::NfsFileReader()
:DeferredMonitor(nfs_get_event_loop()), state(State::INITIAL)
:DeferredMonitor(nfs_get_event_loop())
{
}

View File

@@ -54,7 +54,7 @@ class NfsFileReader : NfsLease, NfsCallback, DeferredMonitor {
IDLE,
};
State state;
State state = State::INITIAL;
std::string server, export_name;
const char *path;