diff options
| author | JMC47 <JMC4789@gmail.com> | 2024-12-20 12:50:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-20 12:50:19 -0500 |
| commit | 1ba8541da95128c784d03f9fe5cd53a227de1f89 (patch) | |
| tree | f0f043743e185c6c86a80aa481db83821bc696f8 /Source/Core/Common/FileSearch.cpp | |
| parent | ac0d6cbaaaaaac9c371e16b156daa8fa9ce6a208 (diff) | |
| parent | 3d0d03b871d7ea2cd668abfbcb3ba1ecf0e77ceb (diff) | |
Merge pull request #13091 from mitaclaw/ranges-modernization-2-returns
Ranges Algorithms Modernization - Return
Diffstat (limited to 'Source/Core/Common/FileSearch.cpp')
| -rw-r--r-- | Source/Core/Common/FileSearch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/FileSearch.cpp b/Source/Core/Common/FileSearch.cpp index 4a54c978c9..a92c50f7d1 100644 --- a/Source/Core/Common/FileSearch.cpp +++ b/Source/Core/Common/FileSearch.cpp @@ -98,7 +98,8 @@ std::vector<std::string> DoFileSearch(const std::vector<std::string>& directorie // not because std::filesystem returns duplicates). Also note that this pathname-based uniqueness // isn't as thorough as std::filesystem::equivalent. std::ranges::sort(result); - result.erase(std::unique(result.begin(), result.end()), result.end()); + const auto unique_result = std::ranges::unique(result); + result.erase(unique_result.begin(), unique_result.end()); // Dolphin expects to be able to use "/" (DIR_SEP) everywhere. // std::filesystem uses the OS separator. |
