Skip to content

Commit

Permalink
Achievements: Fix function parameter should be passed by const refere…
Browse files Browse the repository at this point in the history
…nce warnings.

Codacy.
  • Loading branch information
lightningterror committed May 10, 2024
1 parent 4035f1c commit 8ad0870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/Achievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8ad0870

Please sign in to comment.