aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2018-07-18 15:41:29 +0200
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2018-07-18 15:42:00 +0200
commitf4ac8a6ba31189710b89d2bbb017424267494996 (patch)
tree764e1dea55278f9af1c84d4193525effc13837f6
parent42c934681970381a15aa1714822e65492bd51cc3 (diff)
downloadlibnitrokey-f4ac8a6ba31189710b89d2bbb017424267494996.tar.gz
libnitrokey-f4ac8a6ba31189710b89d2bbb017424267494996.tar.bz2
log: define default virtual destructor for LogHandler
Fixes: https://github.com/Nitrokey/libnitrokey/issues/129 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
-rw-r--r--libnitrokey/log.h1
1 files changed, 1 insertions, 0 deletions
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);