diff options
| author | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2025-12-24 10:14:02 +0100 |
|---|---|---|
| committer | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2026-01-24 16:50:10 +0100 |
| commit | f2e1c71803b953c9adb9528c168cbbde23b3b30a (patch) | |
| tree | 276c17d2bbfaebc6dc2193e1f6e3a6f387eb0787 /Source/Core/Common/FileSearch.cpp | |
| parent | 3221e982d371afd39793628bf8973f3cc951db35 (diff) | |
Common/FileSearch: Refactor DoFileSearch
Diffstat (limited to 'Source/Core/Common/FileSearch.cpp')
| -rw-r--r-- | Source/Core/Common/FileSearch.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/Common/FileSearch.cpp b/Source/Core/Common/FileSearch.cpp index 9eb74e4fcf..1eecb1d36d 100644 --- a/Source/Core/Common/FileSearch.cpp +++ b/Source/Core/Common/FileSearch.cpp @@ -5,8 +5,6 @@ #include <algorithm> #include <filesystem> -#include <functional> -#include <iterator> #include <system_error> #include "Common/CommonPaths.h" @@ -21,16 +19,14 @@ #endif #include <cstring> -#include "Common/CommonFuncs.h" -#include "Common/FileUtil.h" #endif namespace fs = std::filesystem; namespace Common { -std::vector<std::string> DoFileSearch(const std::vector<std::string>& directories, - const std::vector<std::string>& exts, bool recursive) +std::vector<std::string> DoFileSearch(std::span<const std::string_view> directories, + std::span<const std::string_view> exts, bool recursive) { const bool accept_all = exts.empty(); |
