Commit 8387beef authored by louiz’'s avatar louiz’

bytes_transferred should be const.

parent cd567b29
......@@ -18,7 +18,6 @@ void CommandHandler::install_callback_once(const std::string& command,
this->callbacks_once[command] = callback;
}
boost::function< void(std::string) > CommandHandler::get_callback(const std::string& command)
{
log_debug("get_callback");
......@@ -39,7 +38,7 @@ boost::function< void(std::string) > CommandHandler::get_callback(const std::str
return 0;
}
void CommandHandler::read_handler(const boost::system::error_code& error, std::size_t bytes_transferred)
void CommandHandler::read_handler(const boost::system::error_code& error, const std::size_t bytes_transferred)
{
log_debug("read_handler, size: " << bytes_transferred << " bytes. error: " << error);
......
......@@ -17,7 +17,7 @@ class CommandHandler
public:
CommandHandler();
~CommandHandler() {}
void read_handler(const boost::system::error_code& error, std::size_t bytes_transferred);
void read_handler(const boost::system::error_code& error, const std::size_t bytes_transferred);
void install_read_handler();
void binary_read_handler(const boost::system::error_code&, std::size_t, boost::function<void(std::string)>);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment