Merge pull request #286 from dpaulat/renovate/cpr-1.x

Update dependency cpr to v1.11.0
This commit is contained in:
Dan Paulat 2024-10-18 04:05:43 -05:00 committed by GitHub
commit b4652f6d2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ from conans import ConanFile
class SupercellWxConan(ConanFile): class SupercellWxConan(ConanFile):
settings = ("os", "compiler", "build_type", "arch") settings = ("os", "compiler", "build_type", "arch")
requires = ("boost/1.86.0", requires = ("boost/1.86.0",
"cpr/1.10.5", "cpr/1.11.0",
"fontconfig/2.15.0", "fontconfig/2.15.0",
"freetype/2.13.3", "freetype/2.13.3",
"geographiclib/2.4", "geographiclib/2.4",

View file

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