Module: check_mk
Branch: master
Commit: 24696aef3872d02631ae124f78407deccf6b863b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=24696aef3872d0…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Feb 3 13:21:25 2016 +0100
clang-tidy fixes for modernize-pass-by-value check.
---
livestatus/src/Column.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/Column.cc b/livestatus/src/Column.cc
index 620a06b..7e90673 100644
--- a/livestatus/src/Column.cc
+++ b/livestatus/src/Column.cc
@@ -22,14 +22,16 @@
// to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
// Boston, MA 02110-1301 USA.
+#include <utility>
+
#include "Column.h"
using std::string;
Column::Column(string name, string description, int indirect_offset,
int extra_offset, int extra_extra_offset)
- : _name(name)
- , _description(description)
+ : _name(std::move(name))
+ , _description(std::move(description))
, _indirect_offset(indirect_offset)
, _extra_offset(extra_offset)
, _extra_extra_offset(extra_extra_offset) {}