mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Modernize std::sort
with ranges
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user