Module: check_mk
Branch: master
Commit: cdd78cb8604b71a138eae42068c4ec3dc7ea1e45
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cdd78cb8604b71…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu May 11 16:20:54 2017 +0200
clang-tidy: clang-analyzer-optin.cplusplus.VirtualCall fixes.
Change-Id: Ie3abf11672ff70c237a814aacee92a6ad6ff4960
---
livestatus/src/Logger.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/livestatus/src/Logger.cc b/livestatus/src/Logger.cc
index 9641bc8..ab5c075 100644
--- a/livestatus/src/Logger.cc
+++ b/livestatus/src/Logger.cc
@@ -86,7 +86,7 @@ ConcreteLogger::ConcreteLogger(const string &name, Logger *parent)
, _handler(name.empty() ? nullptr : new StreamHandler(cerr))
, _use_parent_handlers(true) {}
-ConcreteLogger::~ConcreteLogger() { setHandler(unique_ptr<Handler>()); }
+ConcreteLogger::~ConcreteLogger() { delete _handler; }
string ConcreteLogger::getName() const { return _name; }