Module: check_mk
Branch: master
Commit: 490323fc67fc84c272dbe22259277dc2cc5821ee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=490323fc67fc84…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue May 7 09:55:26 2019 +0200
Activate passedByValue again.
Change-Id: I67bbc7e67fe0fed811856a38edd56dfc2b4a2f29
---
livestatus/src/NagiosCore.cc | 2 +-
livestatus/src/NagiosCore.h | 2 +-
livestatus/src/cppcheck-suppressions.txt | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/livestatus/src/NagiosCore.cc b/livestatus/src/NagiosCore.cc
index 5507a76..d79fc91 100644
--- a/livestatus/src/NagiosCore.cc
+++ b/livestatus/src/NagiosCore.cc
@@ -44,7 +44,7 @@ void NagiosPaths::dump(Logger *logger) {
Notice(logger) << "mkeventd socket path = '" <<
_mkeventd_socket << "'";
}
-NagiosCore::NagiosCore(NagiosPaths paths, NagiosLimits limits,
+NagiosCore::NagiosCore(NagiosPaths paths, const NagiosLimits &limits,
NagiosAuthorization authorization,
Encoding data_encoding)
: _logger_livestatus(Logger::getLogger("cmk.livestatus"))
diff --git a/livestatus/src/NagiosCore.h b/livestatus/src/NagiosCore.h
index bc7daf9..411db20 100644
--- a/livestatus/src/NagiosCore.h
+++ b/livestatus/src/NagiosCore.h
@@ -67,7 +67,7 @@ struct NagiosAuthorization {
class NagiosCore : public MonitoringCore {
public:
- NagiosCore(NagiosPaths paths, NagiosLimits limits,
+ NagiosCore(NagiosPaths paths, const NagiosLimits &limits,
NagiosAuthorization authorization, Encoding data_encoding);
Host *find_host(const std::string &name) override;
diff --git a/livestatus/src/cppcheck-suppressions.txt
b/livestatus/src/cppcheck-suppressions.txt
index 1343c8c..cbb542f 100644
--- a/livestatus/src/cppcheck-suppressions.txt
+++ b/livestatus/src/cppcheck-suppressions.txt
@@ -1,5 +1,4 @@
missingIncludeSystem
-passedByValue
redundantAssignment
uninitMemberVar
unmatchedSuppression