1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-26 22:12:53 -05:00

Code cleanup.

This commit is contained in:
XMRig
2020-04-02 21:19:39 +07:00
parent 4dddd3a44f
commit 914b7023a2
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()