From 5e5ba3b31f444b8fab43a4d0b019ead6effac0c9 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 9 Jul 2018 20:51:33 +0200 Subject: [PATCH] dtor added --- src/core/entity.cpp | 2 ++ src/core/entity.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/entity.cpp b/src/core/entity.cpp index 517317e..df76d01 100644 --- a/src/core/entity.cpp +++ b/src/core/entity.cpp @@ -7,6 +7,8 @@ //Entity::Entity() {} +Entity::~Entity() {} + void Entity::createUuid() { static boost::uuids::random_generator generator{}; diff --git a/src/core/entity.h b/src/core/entity.h index 06f53c6..e416ea7 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -9,7 +9,7 @@ class Entity { public: //Entity(); - //ivirtual ~Entity() = 0; + virtual ~Entity() = 0; const boost::uuids::uuid& getUuid() const { return uuid; }; void createUuid(); void createUuidFromString(const std::string& uuidString);