1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(widget): replace qSort with std::sort in groupchatform

This commit is contained in:
jenli669 2019-07-13 08:01:39 +02:00
parent ba9d724a17
commit 6e71ccfdad
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -218,7 +218,7 @@ void GroupChatForm::updateUserNames()
// add the labels in alphabetical order into the layout
auto nickLabelList = peerLabels.values();
qSort(nickLabelList.begin(), nickLabelList.end(), [](const QLabel* a, const QLabel* b)
std::sort(nickLabelList.begin(), nickLabelList.end(), [](const QLabel* a, const QLabel* b)
{
return a->text().toLower() < b->text().toLower();
});