mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Modernize std::sort
with ranges
This commit is contained in:
parent
bcaf665d14
commit
ebf7cebc32
5 changed files with 13 additions and 14 deletions
|
@ -151,7 +151,7 @@ ScissorResult::ScissorResult(const BPMemory& bpmemory, std::pair<float, float> v
|
|||
}
|
||||
|
||||
auto cmp = [&](const ScissorRect& lhs, const ScissorRect& rhs) { return IsWorse(lhs, rhs); };
|
||||
std::sort(m_result.begin(), m_result.end(), cmp);
|
||||
std::ranges::sort(m_result, cmp);
|
||||
}
|
||||
|
||||
ScissorRect ScissorResult::Best() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue