summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFileCache.cpp
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-12-11 11:12:06 -0500
committerLioncash <mai.iam2048@gmail.com>2023-12-11 11:12:09 -0500
commitff38362216ff3e73eb99f7fda90ec802da1386ff (patch)
treea27dc5a6c45d381cdda58e062e2f787823f3685d /Source/Core/UICommon/GameFileCache.cpp
parent2ca80adeb223bec7f7ce266d4c37d9e733a50899 (diff)
GameFileCache: Use std::span with Update()
All we're really doing is iterating over a sequence of strings, so we don't need to tie this specifically to std::vector.
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
-rw-r--r--Source/Core/UICommon/GameFileCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp
index 1435154941..2838d331d8 100644
--- a/Source/Core/UICommon/GameFileCache.cpp
+++ b/Source/Core/UICommon/GameFileCache.cpp
@@ -83,7 +83,7 @@ std::shared_ptr<const GameFile> GameFileCache::AddOrGet(const std::string& path,
return result;
}
-bool GameFileCache::Update(const std::vector<std::string>& all_game_paths,
+bool GameFileCache::Update(std::span<const std::string> all_game_paths,
const GameAddedToCacheFn& game_added_to_cache,
const GameRemovedFromCacheFn& game_removed_from_cache,
const std::atomic_bool& processing_halted)