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/VideoCommon/GraphicsModSystem/Runtime | |
| 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/VideoCommon/GraphicsModSystem/Runtime')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp index 0001a9081d..b52df66e31 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp @@ -165,10 +165,8 @@ std::vector<std::string> GlobalConflicts(std::string_view source) // Sort the conflicts from largest to smallest string // this way we can ensure smaller strings that are a substring // of the larger string are able to be replaced appropriately - std::sort(global_result.begin(), global_result.end(), - [](const std::string& first, const std::string& second) { - return first.size() > second.size(); - }); + std::ranges::sort(global_result, std::ranges::greater{}, + [](const std::string& s) { return s.size(); }); return global_result; } |
