X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fmessagemodel.cpp;fp=src%2Fclient%2Fmessagemodel.cpp;h=6c93a7f685de76e1622b7982a32a836bab276797;hp=b7dca4fd1c925016b3822aab1c49861647a0b426;hb=c8ddabf364eff2400c61cea395aefe69eb8ba1b3;hpb=0fdc92b633d25609933314dc4fd942a7ab5dd94a diff --git a/src/client/messagemodel.cpp b/src/client/messagemodel.cpp index b7dca4fd..6c93a7f6 100644 --- a/src/client/messagemodel.cpp +++ b/src/client/messagemodel.cpp @@ -127,7 +127,7 @@ void MessageModel::insertMessageGroup(const QList& msglist) Message dayChangeMsg; if (start > 0) { - // check if the preceeding msg is a daychange message and if so if + // check if the preceding msg is a daychange message and if so if // we have to drop or relocate it at the end of this chunk int prevIdx = start - 1; if (messageItemAt(prevIdx)->msgType() == Message::DayChange && messageItemAt(prevIdx)->timestamp() > msglist.at(0).timestamp()) { @@ -150,7 +150,7 @@ void MessageModel::insertMessageGroup(const QList& msglist) // check if we need to insert a daychange message at the end of the this group // if this assert triggers then indexForId() would have found a spot right before a DayChangeMsg - // this should never happen as daychange messages share the msgId with the preceeding message + // this should never happen as daychange messages share the msgId with the preceding message Q_ASSERT(messageItemAt(start)->msgType() != Message::DayChange); QDateTime nextTs = messageItemAt(start)->timestamp(); QDateTime prevTs = msglist.last().timestamp(); @@ -188,7 +188,7 @@ int MessageModel::insertMessagesGracefully(const QList& msglist) /* short description: * 1) first we check where the message with the highest msgId from msglist would be inserted * 2) check that position for dupe - * 3) determine the messageId of the preceeding msg + * 3) determine the messageId of the preceding msg * 4) insert as many msgs from msglist with with msgId larger then the just determined id * those messages are automatically less then the msg of the position we just determined in 1) */ @@ -204,7 +204,7 @@ int MessageModel::insertMessagesGracefully(const QList& msglist) QList::const_iterator iter; if (inOrder) { iter = msglist.constEnd(); - --iter; // this op is safe as we've allready passed an empty check + --iter; // this op is safe as we've already passed an empty check } else { iter = msglist.constBegin();