summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-05-28 08:43:33 +0200
committerGitHub <noreply@github.com>2021-05-28 08:43:33 +0200
commitd25648cb6cb2309135bc5555e042aac10db42300 (patch)
tree71a3257a2296716cbef125e6b740092436c47411
parentMerge pull request #6372 from bunnei/raster-cache-fix (diff)
parentcommon/fs/file: Explicitly delete copy constructors (diff)
downloadyuzu-d25648cb6cb2309135bc5555e042aac10db42300.tar
yuzu-d25648cb6cb2309135bc5555e042aac10db42300.tar.gz
yuzu-d25648cb6cb2309135bc5555e042aac10db42300.tar.bz2
yuzu-d25648cb6cb2309135bc5555e042aac10db42300.tar.lz
yuzu-d25648cb6cb2309135bc5555e042aac10db42300.tar.xz
yuzu-d25648cb6cb2309135bc5555e042aac10db42300.tar.zst
yuzu-d25648cb6cb2309135bc5555e042aac10db42300.zip
-rw-r--r--src/common/fs/file.h11
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>
}
#endif
-class IOFile final : NonCopyable {
+class IOFile final {
public:
IOFile();
@@ -142,7 +142,10 @@ public:
FileType type = FileType::BinaryFile,
FileShareFlag flag = FileShareFlag::ShareReadOnly);
- virtual ~IOFile();
+ ~IOFile();
+
+ IOFile(const IOFile&) = delete;
+ IOFile& operator=(const IOFile&) = delete;
IOFile(IOFile&& other) noexcept;
IOFile& operator=(IOFile&& other) noexcept;
@@ -441,8 +444,8 @@ public:
private:
std::filesystem::path file_path;
- FileAccessMode file_access_mode;
- FileType file_type;
+ FileAccessMode file_access_mode{};
+ FileType file_type{};
std::FILE* file = nullptr;
};