aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-14 19:05:30 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-14 19:05:30 +0900
commit5c624bfdcb0fae5ea08466507e557b5acfb463b8 (patch)
tree35f661250c21a87cc42140861ae7aaaa3a037825
parent95797cf0ea78779ac98348fa1110abc09f5a344f (diff)
downloadlibquotient-5c624bfdcb0fae5ea08466507e557b5acfb463b8.tar.gz
libquotient-5c624bfdcb0fae5ea08466507e557b5acfb463b8.zip
Fixed building with older compilers
-rw-r--r--room.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 6c426de2..296f783a 100644
--- a/room.cpp
+++ b/room.cpp
@@ -803,7 +803,8 @@ void Room::Private::processRedaction(RoomEventPtr redactionEvent)
// Make a new event from the redacted JSON, exchange events,
// notify everyone and delete the old event
- auto oldEvent { ti.replaceEvent(makeEvent<RoomEvent>(originalJson)) };
+ RoomEventPtr oldEvent
+ { ti.replaceEvent(makeEvent<RoomEvent>(originalJson)) };
q->onRedaction(oldEvent.get(), ti.event());
qCDebug(MAIN) << "Redacted" << oldEvent->id() << "with" << redaction->id();
emit q->replacedEvent(ti.event(), oldEvent.get());