summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Akulich <akulichalexander@gmail.com>2016-09-20 13:28:10 (GMT)
committerAlexandr Akulich <akulichalexander@gmail.com>2016-09-20 14:35:04 (GMT)
commit2706d8d60cedcdcc31067122c909797d506ff629 (patch)
treed71cd543fe3c04242dd3630410e7d59ae896cd97
parentcbd7bb27f5caa776c3a41bcb5d35bcf4cb2376b2 (diff)
[Declarative/MessagesModel] Fixed type of modelIndex in onMessageSent()
REVIEW: 128961
-rw-r--r--KTp/Declarative/messages-model.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/KTp/Declarative/messages-model.cpp b/KTp/Declarative/messages-model.cpp
index 6823574..f0692d4 100644
--- a/KTp/Declarative/messages-model.cpp
+++ b/KTp/Declarative/messages-model.cpp
@@ -254,7 +254,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(length, 0);
d->messagesByMessageToken.insert(messageToken, modelIndex);
}