mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Make HandlerCall operator() const
This commit is contained in:
@@ -259,17 +259,17 @@ HandlerCall const& HandlerCall::endComposed () const noexcept
|
||||
return *this;
|
||||
}
|
||||
|
||||
void HandlerCall::operator() ()
|
||||
void HandlerCall::operator() () const
|
||||
{
|
||||
(*m_call)();
|
||||
}
|
||||
|
||||
void HandlerCall::operator() (error_code const& ec)
|
||||
void HandlerCall::operator() (error_code const& ec) const
|
||||
{
|
||||
(*m_call)(ec);
|
||||
}
|
||||
|
||||
void HandlerCall::operator() (error_code const& ec, std::size_t bytes_transferred)
|
||||
void HandlerCall::operator() (error_code const& ec, std::size_t bytes_transferred) const
|
||||
{
|
||||
(*m_call)(ec, bytes_transferred);
|
||||
}
|
||||
|
||||
@@ -397,9 +397,9 @@ public:
|
||||
error at run-time.
|
||||
*/
|
||||
/** @{ */
|
||||
void operator() ();
|
||||
void operator() (error_code const& ec);
|
||||
void operator() (error_code const& ec, std::size_t bytes_transferred);
|
||||
void operator() () const;
|
||||
void operator() (error_code const& ec) const;
|
||||
void operator() (error_code const& ec, std::size_t bytes_transferred) const;
|
||||
/** @} */
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user