Module: check_mk
Branch: master
Commit: 8b918b05575c4d4ee48353aecf464037ab328d57
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b918b05575c4d…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Nov 23 17:22:56 2017 +0100
Some tiny improvements suggested by clang-tidy.
Change-Id: I79b9ddc8398bc9329f1bd6ad5a7f576af0aa5f51
---
livestatus/src/OutputBuffer.cc | 2 +-
livestatus/src/Query.cc | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/livestatus/src/OutputBuffer.cc b/livestatus/src/OutputBuffer.cc
index e746f39..bcc4b86 100644
--- a/livestatus/src/OutputBuffer.cc
+++ b/livestatus/src/OutputBuffer.cc
@@ -98,7 +98,7 @@ void OutputBuffer::writeData(ostringstream &os) {
void OutputBuffer::setError(ResponseCode code, const string &message) {
Warning(_logger) << "error: " << message;
// only the first error is being returned
- if (_error_message == "") {
+ if (_error_message.empty()) {
_error_message = message + "\n";
_response_code = code;
}
diff --git a/livestatus/src/Query.cc b/livestatus/src/Query.cc
index 06eb203..3e23d53 100644
--- a/livestatus/src/Query.cc
+++ b/livestatus/src/Query.cc
@@ -87,6 +87,7 @@ Query::Query(const std::list<std::string> &lines, Table
*table,
: _data_encoding(data_encoding)
, _max_response_size(max_response_size)
, _output(output)
+ , _renderer_query(nullptr)
, _table(table)
, _keepalive(false)
, _auth_user(nullptr)