Module: check_mk
Branch: master
Commit: 9d4df469f3b73fe1d5ae36e75999d26cfd104d52
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9d4df469f3b73f…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Feb 28 16:10:19 2017 +0100
Make clang-tidy happy again.
Change-Id: I1672f03fc7ecd2861c6783024c79171a898eef84
---
livestatus/src/Logfile.cc | 4 ++--
livestatus/src/Logfile.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/livestatus/src/Logfile.cc b/livestatus/src/Logfile.cc
index c28af1a..2d96fde 100644
--- a/livestatus/src/Logfile.cc
+++ b/livestatus/src/Logfile.cc
@@ -53,9 +53,9 @@ using std::vector;
extern unsigned long g_max_lines_per_logfile;
Logfile::Logfile(Logger *logger, const CommandsHolder &commands_holder,
- const fs::path &path, bool watch)
+ fs::path path, bool watch)
: _commands_holder(commands_holder)
- , _path(path)
+ , _path(std::move(path))
, _since(0)
, _watch(watch)
, _read_pos{}
diff --git a/livestatus/src/Logfile.h b/livestatus/src/Logfile.h
index 9f168d0..d1761e7 100644
--- a/livestatus/src/Logfile.h
+++ b/livestatus/src/Logfile.h
@@ -64,7 +64,7 @@ private:
public:
Logfile(Logger *logger, const CommandsHolder &commands_holder,
- const fs::path &path, bool watch);
+ fs::path path, bool watch);
~Logfile();
std::string path() { return _path; }