Skip to content

Commit 0c32e8a

Browse files
authored
Merge pull request #112 from brano543/master
get pointer from unique_ptr in curl_multi
2 parents 6b44207 + 695dcb8 commit 0c32e8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/curl_multi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ namespace curl {
336336

337337
// Implementation of add method
338338
template<typename T> void curl_multi::add(const curl_pair<CURLMoption,T> &pair) {
339-
const CURLMcode code = curl_multi_setopt(this->curl,pair.first(),pair.second());
339+
const CURLMcode code = curl_multi_setopt(this->curl.get(),pair.first(),pair.second());
340340
if (code != CURLM_OK) {
341341
throw curl_multi_exception(code,__FUNCTION__);
342342
}
@@ -351,7 +351,7 @@ namespace curl {
351351

352352
// Implementation of overloaded add method.
353353
template <CURLMoption Opt> void curl_multi::add(detail::MOption_type<Opt> val) {
354-
const auto code = curl_multi_setopt(this->curl, Opt, val);
354+
const auto code = curl_multi_setopt(this->curl.get(), Opt, val);
355355
if (code != CURLM_OK) {
356356
throw curl_multi_exception(code, __FUNCTION__);
357357
}

0 commit comments

Comments
 (0)