summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2016-11-05 11:24:15 (GMT)
committerElvis Angelaccio <elvis.angelaccio@kde.org>2016-11-05 11:24:15 (GMT)
commit862ac22eedcf2e3e68ed157da88ac31834395829 (patch)
tree3f08f5d6e7da1085327a1c5afd47a75df35b2222
parent6fca7438f1d27b949015f366b65ec9e23ad2296b (diff)
archivemodel: port away from deprecated qStableSort
std::stable_sort should be used instead, as recommended by the documentation.
-rw-r--r--part/archivemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/part/archivemodel.cpp b/part/archivemodel.cpp
index 629bb04..55229a0 100644
--- a/part/archivemodel.cpp
+++ b/part/archivemodel.cpp
@@ -391,7 +391,7 @@ void ArchiveModel::sort(int column, Qt::SortOrder order)
sorting[i].second = i;
}
- qStableSort(sorting.begin(), sorting.end(), modelSorter);
+ std::stable_sort(sorting.begin(), sorting.end(), modelSorter);
QModelIndexList fromIndexes;
QModelIndexList toIndexes;