mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
Merge pull request #50 from jakcron/fnd-ifile-wrappers
[fnd] Fix virtual ~dtor in IFile and ISerialisable
This commit is contained in:
commit
4029272c98
2 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,7 @@ namespace fnd
|
||||||
class IFile
|
class IFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
inline virtual ~IFile() {}
|
virtual ~IFile() = default;
|
||||||
|
|
||||||
virtual size_t size() = 0;
|
virtual size_t size() = 0;
|
||||||
virtual void seek(size_t offset) = 0;
|
virtual void seek(size_t offset) = 0;
|
||||||
|
|
|
@ -7,6 +7,8 @@ namespace fnd
|
||||||
class ISerialisable
|
class ISerialisable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~ISerialisable() = default;
|
||||||
|
|
||||||
// serialise
|
// serialise
|
||||||
virtual void toBytes() = 0;
|
virtual void toBytes() = 0;
|
||||||
// deserialise
|
// deserialise
|
||||||
|
|
Loading…
Reference in a new issue