[fnd] Update IFile & ISerialisable with bettered virtual dtor.

This commit is contained in:
jakcron 2018-10-06 13:15:42 +08:00
parent 3716bf0b82
commit 9e86d96b84
2 changed files with 3 additions and 1 deletions

View file

@ -6,7 +6,7 @@ namespace fnd
class IFile
{
public:
inline virtual ~IFile() {}
virtual ~IFile() = default;
virtual size_t size() = 0;
virtual void seek(size_t offset) = 0;

View file

@ -7,6 +7,8 @@ namespace fnd
class ISerialisable
{
public:
virtual ~ISerialisable() = default;
// serialise
virtual void toBytes() = 0;
// deserialise