diff options
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFileCache.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp index d5b970d29c..90dd0c63fc 100644 --- a/Source/Core/UICommon/GameFileCache.cpp +++ b/Source/Core/UICommon/GameFileCache.cpp @@ -65,9 +65,7 @@ void GameFileCache::Clear(DeleteOnDisk delete_on_disk) std::shared_ptr<const GameFile> GameFileCache::AddOrGet(const std::string& path, bool* cache_changed) { - auto it = std::find_if( - m_cached_files.begin(), m_cached_files.end(), - [&path](const std::shared_ptr<GameFile>& file) { return file->GetFilePath() == path; }); + auto it = std::ranges::find(m_cached_files, path, &GameFile::GetFilePath); const bool found = it != m_cached_files.cend(); if (!found) { |
