modernize-use-equals-default

This commit is contained in:
Daniel Chabrowski
2018-02-25 01:25:15 +01:00
parent e5bbe57f01
commit 1e1ca23101
4 changed files with 39 additions and 44 deletions

View File

@@ -31,7 +31,7 @@ public:
const int open_tries = 5;
const int open_interval = 10;
explicit file_helper() {}
explicit file_helper() = default;
file_helper(const file_helper&) = delete;
file_helper& operator=(const file_helper&) = delete;
@@ -135,6 +135,7 @@ public:
// finally - return a valid base and extension tuple
return std::make_tuple(fname.substr(0, ext_index), fname.substr(ext_index));
}
private:
FILE* _fd{ nullptr };
filename_t _filename;