Explorar o código

common/fs/file: Devirtualize destructor

IOFile is a final class, so there's no need for a virtual destructor.
Lioncash %!s(int64=5) %!d(string=hai) anos
pai
achega
6806a893bd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;