modernize-use-default-member-init

This commit is contained in:
Daniel Chabrowski
2018-02-25 00:31:14 +01:00
parent d5a3bb5234
commit 7aed498540
3 changed files with 7 additions and 15 deletions

View File

@@ -31,9 +31,7 @@ public:
const int open_tries = 5;
const int open_interval = 10;
explicit file_helper() :
_fd(nullptr)
{}
explicit file_helper() {}
file_helper(const file_helper&) = delete;
file_helper& operator=(const file_helper&) = delete;
@@ -138,7 +136,7 @@ public:
return std::make_tuple(fname.substr(0, ext_index), fname.substr(ext_index));
}
private:
FILE* _fd;
FILE* _fd{ nullptr };
filename_t _filename;
};
}