summaryrefslogtreecommitdiff
path: root/http/http_connection.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-25 21:28:56 +0300
committerEd Tanous <ed@tanous.net>2022-02-11 23:30:05 +0300
commite05aec50f10116e6dda7e377bc61799aa5b7c166 (patch)
tree964aedffefcc787029c571a83889247caa0d3968 /http/http_connection.hpp
parent213ffc701d838bece5893cda23475e7518bd6955 (diff)
downloadbmcweb-e05aec50f10116e6dda7e377bc61799aa5b7c166.tar.xz
Add readability-redundant-* checks
There's a number of redundancies in our code that clang can sanitize out. Fix the existing problems, and enable the checks. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ie63d7b7f0777b702fbf1b23a24e1bed7b4f5183b
Diffstat (limited to 'http/http_connection.hpp')
-rw-r--r--http/http_connection.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index 0b58e9b6f5..61d3f7b901 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -261,7 +261,7 @@ class Connection :
return true;
}
sslUser.resize(lastChar);
- std::string unsupportedClientId = "";
+ std::string unsupportedClientId;
sessionIsFromTransport = true;
userSession = persistent_data::SessionStore::getInstance()
.generateUserSession(
@@ -725,7 +725,6 @@ class Connection :
BMCWEB_LOG_DEBUG << this << " timer started";
}
- private:
Adaptor adaptor;
Handler* handler;
// Making this a std::optional allows it to be efficiently destroyed and