diff options
| author | 2021-05-28 01:49:38 -0400 | |
|---|---|---|
| committer | 2021-05-28 01:49:40 -0400 | |
| commit | 210c2c9a560565d644384ddb99098822600ceb7a (patch) | |
| tree | 71a3257a2296716cbef125e6b740092436c47411 /src/common/fs | |
| parent | common/fs/file: Devirtualize destructor (diff) | |
| download | yuzu-210c2c9a560565d644384ddb99098822600ceb7a.tar.gz yuzu-210c2c9a560565d644384ddb99098822600ceb7a.tar.xz yuzu-210c2c9a560565d644384ddb99098822600ceb7a.zip | |
common/fs/file: Explicitly delete copy constructors
Relocates them to the same place the move equivalents are at for
consistent viewing.
Diffstat (limited to 'src/common/fs')
| -rw-r--r-- | src/common/fs/file.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 33a8b9d2f..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 | ||
| @@ -144,6 +144,9 @@ public: | |||
| 144 | 144 | ||
| 145 | ~IOFile(); | 145 | ~IOFile(); |
| 146 | 146 | ||
| 147 | IOFile(const IOFile&) = delete; | ||
| 148 | IOFile& operator=(const IOFile&) = delete; | ||
| 149 | |||
| 147 | IOFile(IOFile&& other) noexcept; | 150 | IOFile(IOFile&& other) noexcept; |
| 148 | IOFile& operator=(IOFile&& other) noexcept; | 151 | IOFile& operator=(IOFile&& other) noexcept; |
| 149 | 152 | ||