Achievements: Fix function parameter should be passed by const reference warnings.

Codacy.
This commit is contained in:
lightningterror 2024-05-08 13:41:16 +02:00
parent 4035f1c554
commit 8ad08706aa
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ std::string Achievements::GetGameHash(const std::string& elf_path)
void Achievements::DownloadImage(std::string url, std::string cache_filename)
{
auto callback = [cache_filename](s32 status_code, const std::string& content_type, HTTPDownloader::Request::Data data) {
auto callback = [cache_filename = std::move(cache_filename)](s32 status_code, const std::string& content_type, HTTPDownloader::Request::Data data) {
if (status_code != HTTPDownloader::HTTP_STATUS_OK)
return;