more braced init list conversion
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:

committed by
Max Kellermann

parent
d0f9062b56
commit
4e276256c0
@@ -60,7 +60,7 @@ CurlUnescape(CURL *curl, StringView src) noexcept
|
||||
int outlength;
|
||||
CurlString tmp(curl_easy_unescape(curl, src.data, src.size,
|
||||
&outlength));
|
||||
return std::string(tmp.c_str(), outlength);
|
||||
return {tmp.c_str(), size_t(outlength)};
|
||||
}
|
||||
|
||||
std::string
|
||||
|
Reference in New Issue
Block a user