Modernize std::sort with ranges

This commit is contained in:
mitaclaw
2024-09-29 11:19:05 -07:00
parent bcaf665d14
commit ebf7cebc32
5 changed files with 13 additions and 14 deletions

View File

@ -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);