lib/curl/Multi: move operator bool() down

This commit is contained in:
Max Kellermann 2021-03-29 20:13:13 +02:00
parent fe2ca1ddef
commit c5fec4ac2a

View File

@ -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;
} }