[fnd] Add pure virtual destructor to IFile to prevent pointers of it being deleted.

This commit is contained in:
jakcron 2018-05-11 21:10:04 +08:00
parent 1a34e5acd3
commit d5da5afaae

View file

@ -6,6 +6,8 @@ namespace fnd
class IFile
{
public:
virtual ~IFile() = 0;
virtual size_t size() = 0;
virtual void seek(size_t offset) = 0;
virtual void read(byte_t* out, size_t len) = 0;