Module: check_mk
Branch: master
Commit: aaf5c5c1c428bc9e85946cef726f9b0c732b5d76
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aaf5c5c1c428bc…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 10 08:14:19 2015 +0100
cppcheck-induced cleanup: Added missing 'explicit's.
---
livestatus/src/Aggregator.h | 2 +-
livestatus/src/CountAggregator.h | 2 +-
livestatus/src/DowntimeOrComment.h | 4 ++--
livestatus/src/InputBuffer.h | 2 +-
livestatus/src/LogCache.h | 2 +-
livestatus/src/NegatingFilter.h | 2 +-
livestatus/src/TableDownComm.h | 2 +-
livestatus/src/TableHosts.h | 2 +-
8 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/livestatus/src/Aggregator.h b/livestatus/src/Aggregator.h
index d39e45e..89c62d2 100644
--- a/livestatus/src/Aggregator.h
+++ b/livestatus/src/Aggregator.h
@@ -35,7 +35,7 @@ protected:
int _operation;
uint32_t _count;
public:
- Aggregator(int o) : _operation(o), _count(0) {}
+ explicit Aggregator(int o) : _operation(o), _count(0) {}
virtual ~Aggregator() {}
virtual void consume(void *data, Query *) = 0;
virtual void output(Query *) = 0;
diff --git a/livestatus/src/CountAggregator.h b/livestatus/src/CountAggregator.h
index ebf2542..5adfe14 100644
--- a/livestatus/src/CountAggregator.h
+++ b/livestatus/src/CountAggregator.h
@@ -36,7 +36,7 @@ class CountAggregator : public Aggregator
{
Filter *_filter;
public:
- CountAggregator(Filter *f) : Aggregator(STATS_OP_COUNT), _filter(f) {}
+ explicit CountAggregator(Filter *f) : Aggregator(STATS_OP_COUNT), _filter(f) {}
void consume(void *data, Query *);
void output(Query *);
};
diff --git a/livestatus/src/DowntimeOrComment.h b/livestatus/src/DowntimeOrComment.h
index 4f00382..0f6dd22 100644
--- a/livestatus/src/DowntimeOrComment.h
+++ b/livestatus/src/DowntimeOrComment.h
@@ -101,7 +101,7 @@ struct Downtime : public DowntimeOrComment
int _fixed;
int _duration;
int _triggered_by;
- Downtime(nebstruct_downtime_struct *data);
+ explicit Downtime(nebstruct_downtime_struct *data);
};
struct Comment : public DowntimeOrComment
@@ -111,7 +111,7 @@ struct Comment : public DowntimeOrComment
int _source;
int _entry_type;
int _expires;
- Comment(nebstruct_comment_struct *data);
+ explicit Comment(nebstruct_comment_struct *data);
};
#endif // Downtime_h
diff --git a/livestatus/src/InputBuffer.h b/livestatus/src/InputBuffer.h
index 46c4209..58a7dee 100644
--- a/livestatus/src/InputBuffer.h
+++ b/livestatus/src/InputBuffer.h
@@ -56,7 +56,7 @@ class InputBuffer
// some buffer
public:
- InputBuffer(int *termination_flag);
+ explicit InputBuffer(int *termination_flag);
void setFd(int fd);
int readRequest();
bool moreLines() { return !_requestlines.empty(); }
diff --git a/livestatus/src/LogCache.h b/livestatus/src/LogCache.h
index bcc335b..aeab869 100644
--- a/livestatus/src/LogCache.h
+++ b/livestatus/src/LogCache.h
@@ -44,7 +44,7 @@ class LogCache
_logfiles_t _logfiles;
public:
- LogCache(unsigned long max_cached_messages);
+ explicit LogCache(unsigned long max_cached_messages);
~LogCache();
void setMaxCachedMessages(unsigned long m);
time_t _last_index_update;
diff --git a/livestatus/src/NegatingFilter.h b/livestatus/src/NegatingFilter.h
index 9d3ab71..100b069 100644
--- a/livestatus/src/NegatingFilter.h
+++ b/livestatus/src/NegatingFilter.h
@@ -32,7 +32,7 @@ class NegatingFilter : public Filter
{
Filter *_filter;
public:
- NegatingFilter(Filter *filter) : _filter(filter) {}
+ explicit NegatingFilter(Filter *filter) : _filter(filter) {}
~NegatingFilter() { delete _filter; }
bool isNegatingFilter() { return true; }
Filter *subfilter() { return _filter; }
diff --git a/livestatus/src/TableDownComm.h b/livestatus/src/TableDownComm.h
index 06cfe0e..f3c8de2 100644
--- a/livestatus/src/TableDownComm.h
+++ b/livestatus/src/TableDownComm.h
@@ -43,7 +43,7 @@ class TableDownComm : public Table
_entries_t _entries;
public:
- TableDownComm(bool is_downtime);
+ explicit TableDownComm(bool is_downtime);
const char *name() { return _name; }
~TableDownComm();
DowntimeOrComment *findEntry(unsigned long id, bool is_service);
diff --git a/livestatus/src/TableHosts.h b/livestatus/src/TableHosts.h
index cabe433..357d758 100644
--- a/livestatus/src/TableHosts.h
+++ b/livestatus/src/TableHosts.h
@@ -36,7 +36,7 @@ class TableHosts : public Table
{
bool _by_group;
public:
- TableHosts(bool by_group);
+ explicit TableHosts(bool by_group);
const char *name() { return _by_group ? "hostsbygroup" : "hosts";
}
const char *prefixname() { return "hosts"; }
bool isAuthorized(contact *ctc, void *data);