Enable readability-avoid-const-params-in-decls
This check involves explicitly declaring variables const when they're
declared auto, which helps in readability, and makes it more clear that
the variables are const.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I71198ea03850384a389a56ad26f2c4a48c75b148
diff --git a/http/websocket.hpp b/http/websocket.hpp
index 74bce58..eadb276 100644
--- a/http/websocket.hpp
+++ b/http/websocket.hpp
@@ -34,11 +34,11 @@
Connection& operator=(const Connection&) = delete;
Connection& operator=(const Connection&&) = delete;
- virtual void sendBinary(const std::string_view msg) = 0;
+ virtual void sendBinary(std::string_view msg) = 0;
virtual void sendBinary(std::string&& msg) = 0;
- virtual void sendText(const std::string_view msg) = 0;
+ virtual void sendText(std::string_view msg) = 0;
virtual void sendText(std::string&& msg) = 0;
- virtual void close(const std::string_view msg = "quit") = 0;
+ virtual void close(std::string_view msg = "quit") = 0;
virtual boost::asio::io_context& getIoContext() = 0;
virtual ~Connection() = default;