From 4a532e5ae61e195161171092fdfe09b97459944a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 20 Aug 2018 19:50:29 +0100 Subject: Add missing virtual destructors --- libadhocutil/cache.h | 1 + libadhocutil/nvpParse.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libadhocutil/cache.h b/libadhocutil/cache.h index 14f803d..66b4a7c 100644 --- a/libadhocutil/cache.h +++ b/libadhocutil/cache.h @@ -19,6 +19,7 @@ class DLL_PUBLIC Cacheable { public: typedef const std::shared_ptr Value; Cacheable(const K & k, time_t validUntil); + virtual ~Cacheable() = default; const K key; const time_t validUntil; diff --git a/libadhocutil/nvpParse.h b/libadhocutil/nvpParse.h index 2a3eba9..ce851a6 100644 --- a/libadhocutil/nvpParse.h +++ b/libadhocutil/nvpParse.h @@ -36,6 +36,7 @@ class NvpParse : public yyFlexLexer { template class TargetBase { public: + virtual ~TargetBase() = default; virtual AssignFunc assign(T *) const = 0; }; -- cgit v1.2.3