diff --git a/hikyuu/utilities/http_client/HttpClient.cpp b/hikyuu/utilities/http_client/HttpClient.cpp index ce2865a..cc25828 100644 --- a/hikyuu/utilities/http_client/HttpClient.cpp +++ b/hikyuu/utilities/http_client/HttpClient.cpp @@ -98,7 +98,7 @@ void HttpClient::_connect() { if (!m_conn.valid()) { NNG_CHECK(m_aio.wait().result()); - m_conn = std::move(nng::http_conn((nng_http_conn*)m_aio.get_output(0))); + m_conn = nng::http_conn((nng_http_conn*)m_aio.get_output(0)); } } diff --git a/hikyuu/utilities/http_client/HttpClient.h b/hikyuu/utilities/http_client/HttpClient.h index 237343b..e20ee54 100644 --- a/hikyuu/utilities/http_client/HttpClient.h +++ b/hikyuu/utilities/http_client/HttpClient.h @@ -132,7 +132,7 @@ class HKU_UTILS_API HttpClient { } void setUrl(const std::string& url) noexcept { - m_url = std::move(nng::url(url)); + m_url = nng::url(url); reset(); }