From d6062eefbf918b1a5b1388a4a5f7d7615bd223eb Mon Sep 17 00:00:00 2001
From: Gunnar Beutner
Date: Thu, 4 Jan 2018 08:59:00 +0100
Subject: [PATCH] Apply clang-tidy fix 'modernize-raw-string-literal'
---
lib/perfdata/elasticsearchwriter.cpp | 2 +-
lib/remote/infohandler.cpp | 2 +-
test/config-ops.cpp | 22 +++++++++++-----------
tools/mkclass/classcompiler.cpp | 12 ++++++------
4 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/lib/perfdata/elasticsearchwriter.cpp b/lib/perfdata/elasticsearchwriter.cpp
index fdb0b0ce5..4711cd9ac 100644
--- a/lib/perfdata/elasticsearchwriter.cpp
+++ b/lib/perfdata/elasticsearchwriter.cpp
@@ -358,7 +358,7 @@ void ElasticsearchWriter::Enqueue(const String& type, const Dictionary::Ptr& fie
* We do it this way to avoid problems with a near full queue.
*/
- String indexBody = "{ \"index\" : { \"_type\" : \"" + eventType + "\" } }\n";
+ String indexBody = R"({ "index" : { "_type" : ")" + eventType + "\" } }\n";
String fieldsBody = JsonEncode(fields);
Log(LogDebug, "ElasticsearchWriter")
diff --git a/lib/remote/infohandler.cpp b/lib/remote/infohandler.cpp
index c09483692..754948d33 100644
--- a/lib/remote/infohandler.cpp
+++ b/lib/remote/infohandler.cpp
@@ -98,7 +98,7 @@ bool InfoHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
} else
body += "Your user does not have any permissions.
";
- body += "More information about API requests is available in the documentation.