summaryrefslogtreecommitdiff
path: root/include/kvm_websocket.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-02-15 22:30:39 +0300
committerEd Tanous <ed@tanous.net>2022-02-17 19:45:08 +0300
commitf5b191a68700bc58beadaaf9224d4d6f69ccf5dc (patch)
tree49ebe4043d7019aa014332d5975448ebdcf758e3 /include/kvm_websocket.hpp
parentf1e1bbf24c296bf69058225a99036ec64a65705d (diff)
downloadbmcweb-f5b191a68700bc58beadaaf9224d4d6f69ccf5dc.tar.xz
Prepare for clang-tidy-14
clang-tidy 14 now detects some more stuff that it couldn't before. These are all pretty reasonable and things that we enforce today. All changes were made by the robot. Tested: Code compiles and unit tests pass. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I880d714c97adc38a190472766fb922fbfb30e82a
Diffstat (limited to 'include/kvm_websocket.hpp')
-rw-r--r--include/kvm_websocket.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp
index 51246aa57f..d45d4143a4 100644
--- a/include/kvm_websocket.hpp
+++ b/include/kvm_websocket.hpp
@@ -17,7 +17,7 @@ class KvmSession
{
public:
explicit KvmSession(crow::websocket::Connection& connIn) :
- conn(connIn), hostSocket(conn.getIoContext()), doingWrite(false)
+ conn(connIn), hostSocket(conn.getIoContext())
{
boost::asio::ip::tcp::endpoint endpoint(
boost::asio::ip::make_address("127.0.0.1"), 5900);
@@ -147,7 +147,7 @@ class KvmSession
boost::asio::ip::tcp::socket hostSocket;
boost::beast::flat_static_buffer<1024UL * 50UL> outputBuffer;
boost::beast::flat_static_buffer<1024UL> inputBuffer;
- bool doingWrite;
+ bool doingWrite{false};
};
static boost::container::flat_map<crow::websocket::Connection*,