mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
return error code by value rather than reference
This commit is contained in:
@@ -216,7 +216,7 @@ protected:
|
||||
h(ec);
|
||||
}
|
||||
|
||||
const lib::error_code &get_ec() const {
|
||||
lib::error_code get_ec() const {
|
||||
return lib::error_code();
|
||||
}
|
||||
private:
|
||||
@@ -228,7 +228,7 @@ private:
|
||||
|
||||
socket_ptr m_socket;
|
||||
state m_state;
|
||||
|
||||
|
||||
connection_hdl m_hdl;
|
||||
socket_init_handler m_socket_init_handler;
|
||||
};
|
||||
|
||||
@@ -251,7 +251,7 @@ protected:
|
||||
callback(m_ec);
|
||||
}
|
||||
|
||||
const lib::error_code &get_ec() const {
|
||||
lib::error_code get_ec() const {
|
||||
return m_ec;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user