mirror of https://github.com/PCSX2/pcsx2.git
Achievements: Fix function parameter should be passed by const reference warnings.
Codacy.
This commit is contained in:
parent
4035f1c554
commit
8ad08706aa
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue