diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-14 19:05:30 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-14 19:05:30 +0900 |
commit | 5c624bfdcb0fae5ea08466507e557b5acfb463b8 (patch) | |
tree | 35f661250c21a87cc42140861ae7aaaa3a037825 | |
parent | 95797cf0ea78779ac98348fa1110abc09f5a344f (diff) | |
download | libquotient-5c624bfdcb0fae5ea08466507e557b5acfb463b8.tar.gz libquotient-5c624bfdcb0fae5ea08466507e557b5acfb463b8.zip |
Fixed building with older compilers
-rw-r--r-- | room.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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()); |