summaryrefslogtreecommitdiff
path: root/include/obmc_console.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-05-18 20:30:34 +0300
committerEd Tanous <ed@tanous.net>2023-05-19 20:47:39 +0300
commit81c4e3305281b2cfece8822f7c7114200ce4e12c (patch)
tree60563dba369c24a57bbcc21f6a172490e338a3f2 /include/obmc_console.hpp
parent4a40441f944aaff8d7bb2040e4d88ebfcebbab11 (diff)
downloadbmcweb-81c4e3305281b2cfece8822f7c7114200ce4e12c.tar.xz
Capture all boost::system::error_codes by ref
Capturing these possibly overloaded values by reference can avoid a copy in some cases, and it's good to be consistent. This change was made automatically by grep/sed. Tested: Code compiles. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Iafeaca2a5dc52f39753b5a3880419d6bc943f81b
Diffstat (limited to 'include/obmc_console.hpp')
-rw-r--r--include/obmc_console.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp
index 3ab13ee4c2..fac489ad6d 100644
--- a/include/obmc_console.hpp
+++ b/include/obmc_console.hpp
@@ -50,7 +50,7 @@ inline void doWrite()
doingWrite = true;
hostSocket->async_write_some(
boost::asio::buffer(inputBuffer.data(), inputBuffer.size()),
- [](boost::beast::error_code ec, std::size_t bytesWritten) {
+ [](const boost::beast::error_code& ec, std::size_t bytesWritten) {
doingWrite = false;
inputBuffer.erase(0, bytesWritten);