diff options
author | Ed Tanous <edtanous@google.com> | 2022-02-15 22:30:39 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-02-17 19:45:08 +0300 |
commit | f5b191a68700bc58beadaaf9224d4d6f69ccf5dc (patch) | |
tree | 49ebe4043d7019aa014332d5975448ebdcf758e3 /redfish-core/include | |
parent | f1e1bbf24c296bf69058225a99036ec64a65705d (diff) | |
download | bmcweb-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 'redfish-core/include')
-rw-r--r-- | redfish-core/include/server_sent_events.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/redfish-core/include/server_sent_events.hpp b/redfish-core/include/server_sent_events.hpp index 79703f02eb..13840d3d1e 100644 --- a/redfish-core/include/server_sent_events.hpp +++ b/redfish-core/include/server_sent_events.hpp @@ -52,9 +52,9 @@ class ServerSentEvents : public std::enable_shared_from_this<ServerSentEvents> std::shared_ptr<boost::beast::tcp_stream> sseConn; std::queue<std::pair<uint64_t, std::string>> requestDataQueue; std::string outBuffer; - SseConnState state; - int retryCount; - int maxRetryAttempts; + SseConnState state{SseConnState::startInit}; + int retryCount{0}; + int maxRetryAttempts{5}; void sendEvent(const std::string& id, const std::string& msg) { @@ -257,8 +257,7 @@ class ServerSentEvents : public std::enable_shared_from_this<ServerSentEvents> ServerSentEvents& operator=(ServerSentEvents&&) = delete; ServerSentEvents(const std::shared_ptr<boost::beast::tcp_stream>& adaptor) : - sseConn(adaptor), state(SseConnState::startInit), retryCount(0), - maxRetryAttempts(5) + sseConn(adaptor) { startSSE(); } |