Code cleanup.

This commit is contained in:
XMRig
2020-04-02 21:19:39 +07:00
parent 6a89a9e3be
commit ee80f9b2c6
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()