Code cleanup.

This commit is contained in:
XMRig 2020-04-02 21:19:39 +07:00
parent 4dddd3a44f
commit 914b7023a2
No known key found for this signature in database
GPG key ID: 446A53638BE94409
3 changed files with 12 additions and 18 deletions

View file

@ -52,7 +52,7 @@ public:
m_ctx(ctx),
m_body(std::move(body))
{
m_buf = uv_buf_init(const_cast<char *>(m_body.c_str()), m_body.size());
m_buf = uv_buf_init(&m_body.front(), m_body.size());
}
inline ~HttpWriteBaton()