diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-03-23 15:56:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-23 15:56:13 -0400 |
| commit | ad3650abfcae6432338ba976123958ee67a4106c (patch) | |
| tree | 23def284c9a42648ea0779f94903ba43903aa353 /Source/Core/UICommon/GameFileCache.cpp | |
| parent | 1515cf6ccdd1ba206c8e0eaabad07de28a4f5939 (diff) | |
| parent | e4efe011d71b668537bc551996848e911de079ab (diff) | |
Merge pull request #13093 from mitaclaw/ranges-modernization-4-projection
Ranges Algorithms Modernization - Projection
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) { |
