mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-28 14:00:41 -04:00
Modernize std::sort with ranges
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user