summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-14 14:01:09 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-14 14:04:39 +0100
commit82fcbe948dd976092301eb3d2782e3446240b333 (patch)
tree84fe91a065451d6df8013efe557c6c2c189b72bd
parentC++17 (diff)
downloadslicer-82fcbe948dd976092301eb3d2782e3446240b333.tar.bz2
slicer-82fcbe948dd976092301eb3d2782e3446240b333.tar.xz
slicer-82fcbe948dd976092301eb3d2782e3446240b333.zip
Add missing virtual destructors
-rw-r--r--slicer/slicer/modelPartsTypes.h2
-rw-r--r--slicer/slicer/serializer.h4
2 files changed, 6 insertions, 0 deletions
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<Serializer> SerializerPtr;
class DLL_PUBLIC Deserializer {
public:
+ virtual ~Deserializer() = default;
+
virtual void Deserialize(ModelPartForRootPtr) = 0;
};
typedef std::shared_ptr<Deserializer> DeserializerPtr;