From 6e71ccfdad17b275961efff0a51a182de61ef963 Mon Sep 17 00:00:00 2001 From: jenli669 Date: Sat, 13 Jul 2019 08:01:39 +0200 Subject: [PATCH] refactor(widget): replace qSort with std::sort in groupchatform --- src/widget/form/groupchatform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/form/groupchatform.cpp b/src/widget/form/groupchatform.cpp index 734117496..58e23b027 100644 --- a/src/widget/form/groupchatform.cpp +++ b/src/widget/form/groupchatform.cpp @@ -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(); });