mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 01:49:33 -06:00
Modernize std::stable_sort
with ranges and projections
This commit is contained in:
@ -1335,8 +1335,7 @@ void VolumeVerifier::Finish()
|
||||
}
|
||||
|
||||
// Show the most serious problems at the top
|
||||
std::stable_sort(m_result.problems.begin(), m_result.problems.end(),
|
||||
[](const Problem& p1, const Problem& p2) { return p1.severity > p2.severity; });
|
||||
std::ranges::stable_sort(m_result.problems, std::ranges::greater{}, &Problem::severity);
|
||||
const Severity highest_severity =
|
||||
m_result.problems.empty() ? Severity::None : m_result.problems[0].severity;
|
||||
|
||||
|
Reference in New Issue
Block a user