Fixed warnings

This commit is contained in:
Albert Vaca Cintora 2019-03-07 19:48:06 +01:00
parent 94fbf4c702
commit 0ecf00822b
2 changed files with 2 additions and 1 deletions

View file

@ -126,6 +126,7 @@ void ConversationsDbusInterface::addMessages(const QList<ConversationMessage> &m
void ConversationsDbusInterface::removeMessage(const QString& internalId) void ConversationsDbusInterface::removeMessage(const QString& internalId)
{ {
// TODO: Delete the specified message from our internal structures // TODO: Delete the specified message from our internal structures
Q_UNUSED(internalId);
} }
QList<ConversationMessage> ConversationsDbusInterface::getConversation(const qint64& conversationID) const QList<ConversationMessage> ConversationsDbusInterface::getConversation(const qint64& conversationID) const

View file

@ -75,7 +75,7 @@ size_t RequestConversationWorker::replyForConversation(const QList<ConversationM
// Messages are sorted in ascending order of keys, meaning the front of the list has the oldest // Messages are sorted in ascending order of keys, meaning the front of the list has the oldest
// messages (smallest timestamp number) // messages (smallest timestamp number)
// Therefore, return the end of the list first (most recent messages) // Therefore, return the end of the list first (most recent messages)
int i = 0; size_t i = 0;
for(auto it = conversation.crbegin() + start; it != conversation.crend(); ++it) { for(auto it = conversation.crbegin() + start; it != conversation.crend(); ++it) {
if (i >= howMany) { if (i >= howMany) {
break; break;