Commit 26942071 authored by Alexander Akulich's avatar Alexander Akulich

[declarative] Rename a variable for consistency

parent e857ac00
......@@ -257,8 +257,8 @@ void MessagesModel::onMessageSent(const Tp::Message &message, Tp::MessageSending
{
Q_UNUSED(flags);
int length = rowCount();
beginInsertRows(QModelIndex(), length, length);
int newMessageIndex = rowCount();
beginInsertRows(QModelIndex(), newMessageIndex, newMessageIndex);
const KTp::Message &newMessage = KTp::MessageProcessor::instance()->processIncomingMessage(
message, d->account, d->textChannel);
......@@ -266,7 +266,7 @@ void MessagesModel::onMessageSent(const Tp::Message &message, Tp::MessageSending
if (!messageToken.isEmpty()) {
// Insert the message into the lookup table for delivery reports.
const QPersistentModelIndex modelIndex = createIndex(length, 0);
const QPersistentModelIndex modelIndex = createIndex(newMessageIndex, 0);
d->messagesByMessageToken.insert(messageToken, modelIndex);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment