replace deprecated qSort() with std::sort()

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
Rolf Eike Beer 2019-04-03 20:21:53 +02:00 committed by Dirk Hohndel
parent d19cfec457
commit e3d43b5696
6 changed files with 10 additions and 8 deletions

View file

@ -402,7 +402,7 @@ void DiveListView::selectDives(const QList<int> &newDiveSelection)
// select the dives, highest index first - this way the oldest of the dives
// becomes the selected_dive that we scroll to
QList<int> sortedSelection = newDiveSelection;
qSort(sortedSelection.begin(), sortedSelection.end());
std::sort(sortedSelection.begin(), sortedSelection.end());
newSelection = firstInList = sortedSelection.first();
while (!sortedSelection.isEmpty())