From 24811d10420901199b2fe0a5f35a391272f24f36 Mon Sep 17 00:00:00 2001 From: jenli669 Date: Fri, 12 Jul 2019 08:07:03 +0200 Subject: [PATCH] refactor(offlinemsg): replace qSort with std::sort --- src/persistence/offlinemsgengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/persistence/offlinemsgengine.cpp b/src/persistence/offlinemsgengine.cpp index 0e7247b34..b1cff673b 100644 --- a/src/persistence/offlinemsgengine.cpp +++ b/src/persistence/offlinemsgengine.cpp @@ -101,7 +101,7 @@ void OfflineMsgEngine::deliverOfflineMsgs() QVector 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();