diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-07-24 11:10:52 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-07-24 11:10:52 +0200 |
commit | ef171dfd5bf23da606597a251c327ad2c52ec7b8 (patch) | |
tree | 2b2a381d915ead258aab4f4311ebdfde23bebabb | |
parent | 2ebf30d87dc0b9bcc9488afab441e31044ec7ffa (diff) | |
parent | f4ac8a6ba31189710b89d2bbb017424267494996 (diff) | |
download | libnitrokey-ef171dfd5bf23da606597a251c327ad2c52ec7b8.tar.gz libnitrokey-ef171dfd5bf23da606597a251c327ad2c52ec7b8.tar.bz2 |
Merge branch 'pr_131'
Add virtual destructor to logger classes.
Fixes compilation warning
Fixes #131
Fixes #129
-rw-r--r-- | libnitrokey/log.h | 1 |
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); |