From e3d43b5696d9aede430594fd4304d54d80bd7fac Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Wed, 3 Apr 2019 20:21:53 +0200 Subject: replace deprecated qSort() with std::sort() Signed-off-by: Rolf Eike Beer --- desktop-widgets/divelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/divelistview.cpp') diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index 3ba9ba58f..086bc0a6d 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -402,7 +402,7 @@ void DiveListView::selectDives(const QList &newDiveSelection) // select the dives, highest index first - this way the oldest of the dives // becomes the selected_dive that we scroll to QList sortedSelection = newDiveSelection; - qSort(sortedSelection.begin(), sortedSelection.end()); + std::sort(sortedSelection.begin(), sortedSelection.end()); newSelection = firstInList = sortedSelection.first(); while (!sortedSelection.isEmpty()) -- cgit v1.2.3-70-g09d2