Browse Source

common/fs/file: Devirtualize destructor

IOFile is a final class, so there's no need for a virtual destructor.
nce_cpp
Lioncash 5 years ago
parent
commit
1f79d51913
  1. 2
      src/common/fs/file.h

2
src/common/fs/file.h

@ -142,7 +142,7 @@ public:
FileType type = FileType::BinaryFile, FileType type = FileType::BinaryFile,
FileShareFlag flag = FileShareFlag::ShareReadOnly); FileShareFlag flag = FileShareFlag::ShareReadOnly);
virtual ~IOFile();
~IOFile();
IOFile(IOFile&& other) noexcept; IOFile(IOFile&& other) noexcept;
IOFile& operator=(IOFile&& other) noexcept; IOFile& operator=(IOFile&& other) noexcept;

Loading…
Cancel
Save