mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:50:06 +00:00
cpr write callback now takes const std::string_view&
This commit is contained in:
parent
907d80943e
commit
c04cbc2929
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ void DownloadManager::Impl::DownloadSync(
|
||||||
return !request->IsCanceled();
|
return !request->IsCanceled();
|
||||||
}),
|
}),
|
||||||
cpr::WriteCallback(
|
cpr::WriteCallback(
|
||||||
[&](std::string data, std::intptr_t /* userdata */)
|
[&](const std::string_view& data, std::intptr_t /* userdata */)
|
||||||
{
|
{
|
||||||
// Write file
|
// Write file
|
||||||
ofs << data;
|
ofs << data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue