From f4ac8a6ba31189710b89d2bbb017424267494996 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 18 Jul 2018 15:41:29 +0200 Subject: log: define default virtual destructor for LogHandler Fixes: https://github.com/Nitrokey/libnitrokey/issues/129 Signed-off-by: Igor Gnatenko --- libnitrokey/log.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libnitrokey/log.h b/libnitrokey/log.h index 2a64bef..278b49c 100644 --- a/libnitrokey/log.h +++ b/libnitrokey/log.h @@ -46,6 +46,7 @@ namespace nitrokey { class LogHandler { public: virtual void print(const std::string &, Loglevel lvl) = 0; + virtual ~LogHandler() = default; protected: std::string loglevel_to_str(Loglevel); std::string format_message_to_string(const std::string &str, const Loglevel &lvl); -- cgit v1.2.3