summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;