瀏覽代碼

common/fs/file: Devirtualize destructor

IOFile is a final class, so there's no need for a virtual destructor.
Lioncash 5 年之前
父節點
當前提交
6806a893bd
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;