aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-09-14 09:54:31 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-09-14 10:09:36 +0900
commitd1dfe71769accc391a0a722bd4627b2d18389874 (patch)
treedaefd04926f000ff6e6ccb8ab9edadccdf1c2926
parentcf10a4e9e6bcfa7932f166b251563b990f0dd61e (diff)
downloadlibquotient-d1dfe71769accc391a0a722bd4627b2d18389874.tar.gz
libquotient-d1dfe71769accc391a0a722bd4627b2d18389874.zip
Use Receipt by reference in a loop
Thanks to Clang for pointing this out.
-rw-r--r--room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 56b300b0..c7bf0208 100644
--- a/room.cpp
+++ b/room.cpp
@@ -474,7 +474,7 @@ void Room::processEphemeralEvent(Event* event)
for( QString eventId: receiptEvent->events() )
{
const auto receipts = receiptEvent->receiptsForEvent(eventId);
- for( const Receipt r: receipts )
+ for( const Receipt& r: receipts )
{
d->lastReadEvent.insert(d->connection->user(r.userId), eventId);
}