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

refactor(offlinemsg): replace qSort with std::sort

This commit is contained in:
jenli669 2019-07-12 08:07:03 +02:00
parent 8373e3abf3
commit 24811d1042
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -101,7 +101,7 @@ void OfflineMsgEngine::deliverOfflineMsgs()
QVector<OfflineMessage> messages = sentMessages.values().toVector() + unsentMessages;
// order messages by authorship time to resend in same order as they were written
qSort(messages.begin(), messages.end(), [](const OfflineMessage& lhs, const OfflineMessage& rhs) {
std::sort(messages.begin(), messages.end(), [](const OfflineMessage& lhs, const OfflineMessage& rhs) {
return lhs.authorshipTime < rhs.authorshipTime;
});
removeAllMessages();