From 64174491dac84c559db5c48ed850177fa3eb4da0 Mon Sep 17 00:00:00 2001 From: jellybrick Date: Sat, 14 Mar 2020 23:21:30 +0900 Subject: Fix #127, #128 & Code quality improvements It seems that the author of this code misunderstood 'Array of PollOption' as 'PollOption'. --- src/net/CurlHttpClient.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/CurlHttpClient.cpp') diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp index 5bd9313..6255974 100644 --- a/src/net/CurlHttpClient.cpp +++ b/src/net/CurlHttpClient.cpp @@ -17,9 +17,9 @@ CurlHttpClient::~CurlHttpClient() { } static std::size_t curlWriteString(char* ptr, std::size_t size, std::size_t nmemb, void* userdata) { - static_cast(userdata)->append(ptr, size * nmemb); + static_cast(userdata)->append(ptr, size * nmemb); return size * nmemb; -}; +} std::string CurlHttpClient::makeRequest(const Url& url, const std::vector& args) const { // Copy settings for each call because we change CURLOPT_URL and other stuff. @@ -34,8 +34,8 @@ std::string CurlHttpClient::makeRequest(const Url& url, const std::vector