Module: check_mk
Branch: master
Commit: 660eb52f036251fe6a56f8b2b40074a6ff92d571
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=660eb52f036251…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Feb 3 13:26:22 2016 +0100
clang-tidy fixes for modernize-use-default check.
---
livestatus/src/DynamicColumn.cc | 2 +-
livestatus/src/Store.cc | 2 +-
livestatus/src/TableLog.cc | 2 +-
livestatus/src/TimeperiodsCache.cc | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/livestatus/src/DynamicColumn.cc b/livestatus/src/DynamicColumn.cc
index 4f6de82..fd49957 100644
--- a/livestatus/src/DynamicColumn.cc
+++ b/livestatus/src/DynamicColumn.cc
@@ -24,7 +24,7 @@
#include "DynamicColumn.h"
-DynamicColumn::~DynamicColumn() {}
+DynamicColumn::~DynamicColumn() = default;
Column *DynamicColumn::createColumn(const char *arguments) {
return createColumn(_indirect_offset, _extra_offset, arguments);
diff --git a/livestatus/src/Store.cc b/livestatus/src/Store.cc
index f95e7e0..b068ee7 100644
--- a/livestatus/src/Store.cc
+++ b/livestatus/src/Store.cc
@@ -103,7 +103,7 @@ Store::Store()
}
}
-Store::~Store() {}
+Store::~Store() = default;
Table *Store::findTable(string name) {
auto it = _tables.find(name);
diff --git a/livestatus/src/TableLog.cc b/livestatus/src/TableLog.cc
index f08e0ea..aa361ea 100644
--- a/livestatus/src/TableLog.cc
+++ b/livestatus/src/TableLog.cc
@@ -130,7 +130,7 @@ void TableLog::addColumns(Table *table, string prefix, int
indirect_offset,
(char *)&(ref->_command) - (char *)ref);
}
-TableLog::~TableLog() {}
+TableLog::~TableLog() = default;
void TableLog::answerQuery(Query *query) {
lock_guard<mutex> lg(g_store->logCache()->_lock);
diff --git a/livestatus/src/TimeperiodsCache.cc b/livestatus/src/TimeperiodsCache.cc
index e42cd41..4e2e572 100644
--- a/livestatus/src/TimeperiodsCache.cc
+++ b/livestatus/src/TimeperiodsCache.cc
@@ -38,7 +38,7 @@ extern timeperiod *timeperiod_list;
TimeperiodsCache::TimeperiodsCache() { _cache_time = 0; }
-TimeperiodsCache::~TimeperiodsCache() {}
+TimeperiodsCache::~TimeperiodsCache() = default;
void TimeperiodsCache::logCurrentTimeperiods() {
lock_guard<mutex> lg(_cache_lock);