From e3af5e63128ef9670b135a37869cfd44012ddaf3 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Wed, 9 Oct 2024 22:18:15 +0100 Subject: [PATCH] Fixing 'argument': conversion from 'size_t' to 'int', possible loss of data assert no longer required because size_t is unsigned anyway --- plugins/sms/requestconversationworker.cpp | 3 +-- plugins/sms/requestconversationworker.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/sms/requestconversationworker.cpp b/plugins/sms/requestconversationworker.cpp index 12121041d..77d060ef4 100644 --- a/plugins/sms/requestconversationworker.cpp +++ b/plugins/sms/requestconversationworker.cpp @@ -63,9 +63,8 @@ void RequestConversationWorker::handleRequestConversation() Q_EMIT finished(); } -size_t RequestConversationWorker::replyForConversation(const QList &conversation, int start, size_t howMany) +size_t RequestConversationWorker::replyForConversation(const QList &conversation, size_t start, size_t howMany) { - Q_ASSERT(start >= 0); // Messages are sorted in ascending order of keys, meaning the front of the list has the oldest // messages (smallest timestamp number) // Therefore, return the end of the list first (most recent messages) diff --git a/plugins/sms/requestconversationworker.h b/plugins/sms/requestconversationworker.h index 38443349a..919d41894 100644 --- a/plugins/sms/requestconversationworker.h +++ b/plugins/sms/requestconversationworker.h @@ -58,5 +58,5 @@ private: * @param howMany Maximum number of messages to return * $return Number of messages processed */ - size_t replyForConversation(const QList &conversation, int start, size_t howMany); + size_t replyForConversation(const QList &conversation, size_t start, size_t howMany); };