summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-07-03 14:10:13 +0200
committerAlbert Astals Cid <aacid@kde.org>2019-07-03 14:10:13 +0200
commita8dd0a5909c8902881fc382fa52eda462905979d (patch)
tree2e88d9a62064245dcc54f6ed44a8dc60e6dcda53
parentcf629d6f829d1371b86fc654891ca83533b0542e (diff)
qt5: replace deprecated qStableSort with std::stable_sort
-rw-r--r--qt5/src/poppler-optcontent.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt5/src/poppler-optcontent.cc b/qt5/src/poppler-optcontent.cc
index 49acd4a4..56abf871 100644
--- a/qt5/src/poppler-optcontent.cc
+++ b/qt5/src/poppler-optcontent.cc
@@ -367,7 +367,7 @@ namespace Poppler
Q_FOREACH (OptContentItem *item, changedItems) {
indexes.append(d->indexFromItem(item, 0));
}
- qStableSort(indexes);
+ std::stable_sort(indexes.begin(), indexes.end());
Q_FOREACH (const QModelIndex &changedIndex, indexes) {
emit dataChanged(changedIndex, changedIndex);
}
@@ -431,7 +431,7 @@ namespace Poppler
Q_FOREACH (OptContentItem *item, changedItems) {
indexes.append(d->indexFromItem(item, 0));
}
- qStableSort(indexes);
+ std::stable_sort(indexes.begin(), indexes.end());
Q_FOREACH (const QModelIndex &changedIndex, indexes) {
emit dataChanged(changedIndex, changedIndex);
}