mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +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
|
@ -481,7 +481,7 @@ void WatchWidget::DeleteSelectedWatches()
|
|||
}
|
||||
|
||||
// Sort greatest to smallest, so we don't stomp on existing indices
|
||||
std::sort(row_indices.begin(), row_indices.end(), std::greater{});
|
||||
std::ranges::sort(row_indices, std::ranges::greater{});
|
||||
for (const int row : row_indices)
|
||||
{
|
||||
DeleteWatch(guard, row);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue