From 9616ba022d47655389f43cbf311e2e6d243a8cea Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 12 Jul 2016 21:09:48 +0100 Subject: [PATCH] Fix bad reference argument The reference is not needed and should not compile. It compiles on Visual Studio due to a bug. --- TriviaBot/bot/ClientConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TriviaBot/bot/ClientConnection.cpp b/TriviaBot/bot/ClientConnection.cpp index c8d7cbb..2e36632 100644 --- a/TriviaBot/bot/ClientConnection.cpp +++ b/TriviaBot/bot/ClientConnection.cpp @@ -104,7 +104,7 @@ void ClientConnection::on_fail(websocketpp::connection_hdl hdl) { void ClientConnection::on_open(websocketpp::connection_hdl hdl) { } -void ClientConnection::on_message(websocketpp::connection_hdl &hdl, message_ptr message) { +void ClientConnection::on_message(websocketpp::connection_hdl hdl, message_ptr message) { if (message->get_opcode() != websocketpp::frame::opcode::text) { // If the message is not text, just print as hex std::cout << "<< " << websocketpp::utility::to_hex(message->get_payload()) << std::endl;