Module: check_mk
Branch: master
Commit: ace211b268d583e137d0d7e7e8efff223c7f1fef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ace211b268d583…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Aug 12 11:37:09 2016 +0200
Construct lines in-places, as suggested by clang-tidy.
---
livestatus/src/InputBuffer.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/InputBuffer.cc b/livestatus/src/InputBuffer.cc
index 199de3d..4a906e1 100644
--- a/livestatus/src/InputBuffer.cc
+++ b/livestatus/src/InputBuffer.cc
@@ -192,8 +192,8 @@ InputBuffer::Result InputBuffer::readRequest() {
length--;
}
if (length > 0) {
- _request_lines.push_back(
- string(&_readahead_buffer[_read_index], length));
+ _request_lines.emplace_back(&_readahead_buffer[_read_index],
+ length);
} else {
logger(LG_INFO,
"Warning ignoring line containing only whitespace");