Browse Source

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

reviewable/pr5745/r1
jenli669 6 years ago
parent
commit
24811d1042
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E
  1. 2
      src/persistence/offlinemsgengine.cpp

2
src/persistence/offlinemsgengine.cpp

@ -101,7 +101,7 @@ void OfflineMsgEngine::deliverOfflineMsgs() @@ -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();

Loading…
Cancel
Save