From 82fcbe948dd976092301eb3d2782e3446240b333 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 14 Apr 2018 14:01:09 +0100 Subject: Add missing virtual destructors --- slicer/slicer/modelPartsTypes.h | 2 ++ slicer/slicer/serializer.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/slicer/slicer/modelPartsTypes.h b/slicer/slicer/modelPartsTypes.h index a9b8501..3f26046 100644 --- a/slicer/slicer/modelPartsTypes.h +++ b/slicer/slicer/modelPartsTypes.h @@ -150,6 +150,8 @@ namespace Slicer { class DLL_PRIVATE HookBase : public HookCommon { public: HookBase(const std::string & n); + virtual ~HookBase() = default; + virtual ModelPartPtr Get(T * t) const = 0; virtual const Metadata & GetMetadata() const override; }; diff --git a/slicer/slicer/serializer.h b/slicer/slicer/serializer.h index 5e76200..f4ed4a2 100644 --- a/slicer/slicer/serializer.h +++ b/slicer/slicer/serializer.h @@ -9,12 +9,16 @@ namespace Slicer { class DLL_PUBLIC Serializer { public: + virtual ~Serializer() = default; + virtual void Serialize(ModelPartForRootPtr) = 0; }; typedef std::shared_ptr SerializerPtr; class DLL_PUBLIC Deserializer { public: + virtual ~Deserializer() = default; + virtual void Deserialize(ModelPartForRootPtr) = 0; }; typedef std::shared_ptr DeserializerPtr; -- cgit v1.2.3