diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-30 15:05:17 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-12-15 19:54:17 -0800 |
| commit | 2b0cd16c8c266bc1e298e49d4009eab8c9c23f99 (patch) | |
| tree | f4d30b0b7bf7713dc50c468241a587423a4de35a /Source/Core/VideoCommon/BoundingBox.cpp | |
| parent | 140252ffc0ae71e8b5309bff7d6550189c602702 (diff) | |
Modernize `std::none_of` with ranges
In JitRegCache.cpp, the lambda predicate were replaced by a pointer to member function because ranges algorithms are able to invoke those.
In ConvertDialog.cpp, the `std::mem_fn` helper was removed because ranges algorithms are able to handle pointers to member functions as predicates.
In BoundingBox.cpp, the lambda predicate was returning the bool element unchanged, so `std::identity` was a better fit.
Diffstat (limited to 'Source/Core/VideoCommon/BoundingBox.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BoundingBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/BoundingBox.cpp b/Source/Core/VideoCommon/BoundingBox.cpp index 33174012d7..94e7eaa18c 100644 --- a/Source/Core/VideoCommon/BoundingBox.cpp +++ b/Source/Core/VideoCommon/BoundingBox.cpp @@ -34,7 +34,7 @@ void BoundingBox::Flush() m_is_valid = false; - if (std::none_of(m_dirty.begin(), m_dirty.end(), [](bool dirty) { return dirty; })) + if (std::ranges::none_of(m_dirty, std::identity{})) return; // TODO: Does this make any difference over just writing all the values? |
