From 9e86d96b8400b724177304f340eba789c95c3e86 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sat, 6 Oct 2018 13:15:42 +0800 Subject: [PATCH] [fnd] Update IFile & ISerialisable with bettered virtual dtor. --- lib/libfnd/include/fnd/IFile.h | 2 +- lib/libfnd/include/fnd/ISerialisable.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libfnd/include/fnd/IFile.h b/lib/libfnd/include/fnd/IFile.h index d992962..e93bbf0 100644 --- a/lib/libfnd/include/fnd/IFile.h +++ b/lib/libfnd/include/fnd/IFile.h @@ -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; diff --git a/lib/libfnd/include/fnd/ISerialisable.h b/lib/libfnd/include/fnd/ISerialisable.h index a484ea0..b0d49c7 100644 --- a/lib/libfnd/include/fnd/ISerialisable.h +++ b/lib/libfnd/include/fnd/ISerialisable.h @@ -7,6 +7,8 @@ namespace fnd class ISerialisable { public: + virtual ~ISerialisable() = default; + // serialise virtual void toBytes() = 0; // deserialise