Module: check_mk
Branch: master
Commit: fb819bd34d010dc504157dcc1cc0c01f566467fd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fb819bd34d010d…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu May 11 14:50:34 2017 +0200
clang-tidy: modernize-use-auto fixes.
Change-Id: Ide1e7af4b26ec91314e5a7453b70cf2fdaf4d026
---
livestatus/src/CustomVarsColumn.cc | 2 +-
livestatus/src/module.cc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/livestatus/src/CustomVarsColumn.cc b/livestatus/src/CustomVarsColumn.cc
index b53352f..71f1196 100644
--- a/livestatus/src/CustomVarsColumn.cc
+++ b/livestatus/src/CustomVarsColumn.cc
@@ -47,7 +47,7 @@ CustomVarsColumn::~CustomVarsColumn() = default;
// TODO(sp) This should live in our abstraction layer for cores.
unordered_map<string, string> CustomVarsColumn::getCVM(Row row) const {
#ifdef CMC
- Object *object = columnData<Object>(row);
+ auto *object = columnData<Object>(row);
return object == nullptr ? unordered_map<string, string>()
: object->customAttributes();
#else
diff --git a/livestatus/src/module.cc b/livestatus/src/module.cc
index 3f51a9e..90d1fcb 100644
--- a/livestatus/src/module.cc
+++ b/livestatus/src/module.cc
@@ -686,7 +686,7 @@ private:
vector<DowntimeData> downtimes_for_object(::host *h, ::service *s) const {
vector<DowntimeData> result;
for (const auto &entry : fl_store->_downtimes) {
- Downtime *dt = static_cast<Downtime *>(entry.second.get());
+ auto *dt = static_cast<Downtime *>(entry.second.get());
if (dt->_host == h && dt->_service == s) {
result.push_back({dt->_id, dt->_author_name, dt->_comment});
}
@@ -697,7 +697,7 @@ private:
vector<CommentData> comments_for_object(::host *h, ::service *s) const {
vector<CommentData> result;
for (const auto &entry : fl_store->_comments) {
- Comment *co = static_cast<Comment *>(entry.second.get());
+ auto *co = static_cast<Comment *>(entry.second.get());
if (co->_host == h && co->_service == s) {
result.push_back({co->_id, co->_author_name, co->_comment,
static_cast<uint32_t>(co->_entry_type),