diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-07-03 14:10:13 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-07-03 14:10:13 +0200 |
commit | a8dd0a5909c8902881fc382fa52eda462905979d (patch) | |
tree | 2e88d9a62064245dcc54f6ed44a8dc60e6dcda53 | |
parent | cf629d6f829d1371b86fc654891ca83533b0542e (diff) |
qt5: replace deprecated qStableSort with std::stable_sort
-rw-r--r-- | qt5/src/poppler-optcontent.cc | 4 |
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); } |