lib/curl/Multi: rename parameters

This commit is contained in:
Max Kellermann 2021-03-29 20:12:47 +02:00
parent 7dd2dce6ad
commit fe2ca1ddef

View File

@ -89,14 +89,14 @@ public:
throw std::runtime_error(curl_multi_strerror(code));
}
void Add(CURL *easy_handle) {
auto code = curl_multi_add_handle(handle, easy_handle);
void Add(CURL *easy) {
auto code = curl_multi_add_handle(handle, easy);
if (code != CURLM_OK)
throw std::runtime_error(curl_multi_strerror(code));
}
void Remove(CURL *easy_handle) {
auto code = curl_multi_remove_handle(handle, easy_handle);
void Remove(CURL *easy) {
auto code = curl_multi_remove_handle(handle, easy);
if (code != CURLM_OK)
throw std::runtime_error(curl_multi_strerror(code));
}