From 5c624bfdcb0fae5ea08466507e557b5acfb463b8 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 14 Dec 2017 19:05:30 +0900 Subject: Fixed building with older compilers --- room.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(originalJson)) }; + RoomEventPtr oldEvent + { ti.replaceEvent(makeEvent(originalJson)) }; q->onRedaction(oldEvent.get(), ti.event()); qCDebug(MAIN) << "Redacted" << oldEvent->id() << "with" << redaction->id(); emit q->replacedEvent(ti.event(), oldEvent.get()); -- cgit v1.2.3