소스 검색

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;