Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 132b8bd0 authored by David Faure's avatar David Faure

Port away from qSort

parent 60cce0f9
......@@ -319,7 +319,7 @@ namespace Konversation
//sort QModelIndexList descending
//NOTE: selectedRows() returned an unsorted list
qSort(indexesToRemove.begin(), indexesToRemove.end(), rowGreaterThan);
std::sort(indexesToRemove.begin(), indexesToRemove.end(), rowGreaterThan);
//remove from last to first item, to keep a valid row
foreach (const QModelIndex &index, indexesToRemove)
......@@ -388,7 +388,7 @@ namespace Konversation
//sort QModelIndexList descending
//NOTE: selectedRows() returned an unsorted list
qSort(indexesToRemove.begin(), indexesToRemove.end(), rowGreaterThan);
std::sort(indexesToRemove.begin(), indexesToRemove.end(), rowGreaterThan);
//remove from last to first item, to keep a valid row
foreach (const QModelIndex &index, indexesToRemove)
......
......@@ -2627,7 +2627,7 @@ void Channel::delayedSortNickList()
void Channel::sortNickList(bool delayed)
{
if (!delayed || m_delayedSortTrigger > DELAYED_SORT_TRIGGER) {
qSort(nicknameList.begin(), nicknameList.end(), nickLessThan);
std::sort(nicknameList.begin(), nicknameList.end(), nickLessThan);
nicknameListView->resort();
}
if (!nicknameListView->isSortingEnabled())
......@@ -2850,7 +2850,7 @@ QString NickList::completeNick(const QString& pattern, bool& complete, QStringLi
}
}
qSort(foundNicks.begin(), foundNicks.end(), nickTimestampLessThan);
std::sort(foundNicks.begin(), foundNicks.end(), nickTimestampLessThan);
foreach (Nick *nick, foundNicks)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment