Browse Source

common/fs/file: Devirtualize destructor

IOFile is a final class, so there's no need for a virtual destructor.
Lioncash 5 năm trước cách đây
mục cha
commit
6806a893bd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/common/fs/file.h

+ 1 - 1
src/common/fs/file.h

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