lib/curl/Multi: move operator bool() down
This commit is contained in:
parent
fe2ca1ddef
commit
c5fec4ac2a
@ -69,15 +69,15 @@ public:
|
|||||||
curl_multi_cleanup(handle);
|
curl_multi_cleanup(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
operator bool() const noexcept {
|
|
||||||
return handle != nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
CurlMulti &operator=(CurlMulti &&src) noexcept {
|
CurlMulti &operator=(CurlMulti &&src) noexcept {
|
||||||
std::swap(handle, src.handle);
|
std::swap(handle, src.handle);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operator bool() const noexcept {
|
||||||
|
return handle != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
CURLM *Get() noexcept {
|
CURLM *Get() noexcept {
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user