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:
parent
ba9d724a17
commit
6e71ccfdad
|
@ -218,7 +218,7 @@ void GroupChatForm::updateUserNames()
|
||||||
// add the labels in alphabetical order into the layout
|
// add the labels in alphabetical order into the layout
|
||||||
auto nickLabelList = peerLabels.values();
|
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();
|
return a->text().toLower() < b->text().toLower();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user