diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-29 11:19:05 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 00:53:48 -0700 |
| commit | ebf7cebc32ac9af28dc2383192b7b14f7aea134f (patch) | |
| tree | 792a436fe69984534ba5cc17544ad16722ce4e80 /Source/Core/DolphinQt/Debugger | |
| parent | bcaf665d14c5e20ecc88a8978df19ca73e0e29fc (diff) | |
Modernize `std::sort` with ranges
Diffstat (limited to 'Source/Core/DolphinQt/Debugger')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/WatchWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp index 170bfcc792..7cc61d1334 100644 --- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp @@ -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); |
