diff options
Diffstat (limited to 'src/common/fs')
| -rw-r--r-- | src/common/fs/file.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 209f9664b..50e270c5b 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h | |||
| @@ -117,7 +117,7 @@ template <typename Path> | |||
| 117 | } | 117 | } |
| 118 | #endif | 118 | #endif |
| 119 | 119 | ||
| 120 | class IOFile final : NonCopyable { | 120 | class IOFile final { |
| 121 | public: | 121 | public: |
| 122 | IOFile(); | 122 | IOFile(); |
| 123 | 123 | ||
| @@ -142,7 +142,10 @@ public: | |||
| 142 | FileType type = FileType::BinaryFile, | 142 | FileType type = FileType::BinaryFile, |
| 143 | FileShareFlag flag = FileShareFlag::ShareReadOnly); | 143 | FileShareFlag flag = FileShareFlag::ShareReadOnly); |
| 144 | 144 | ||
| 145 | virtual ~IOFile(); | 145 | ~IOFile(); |
| 146 | |||
| 147 | IOFile(const IOFile&) = delete; | ||
| 148 | IOFile& operator=(const IOFile&) = delete; | ||
| 146 | 149 | ||
| 147 | IOFile(IOFile&& other) noexcept; | 150 | IOFile(IOFile&& other) noexcept; |
| 148 | IOFile& operator=(IOFile&& other) noexcept; | 151 | IOFile& operator=(IOFile&& other) noexcept; |
| @@ -441,8 +444,8 @@ public: | |||
| 441 | 444 | ||
| 442 | private: | 445 | private: |
| 443 | std::filesystem::path file_path; | 446 | std::filesystem::path file_path; |
| 444 | FileAccessMode file_access_mode; | 447 | FileAccessMode file_access_mode{}; |
| 445 | FileType file_type; | 448 | FileType file_type{}; |
| 446 | 449 | ||
| 447 | std::FILE* file = nullptr; | 450 | std::FILE* file = nullptr; |
| 448 | }; | 451 | }; |