diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-01 21:08:06 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 22:04:16 +0900 |
commit | f70ec41accd6da9f223bc41b446ad1d2d77de3f4 (patch) | |
tree | 7efa82ae4a133c8ac8a4a573d4895c1e9688d0bd /lib/events/event.cpp | |
parent | 7681802be815ca1a03f219b82e3bd1b02863d34e (diff) | |
download | libquotient-f70ec41accd6da9f223bc41b446ad1d2d77de3f4.tar.gz libquotient-f70ec41accd6da9f223bc41b446ad1d2d77de3f4.zip |
Fix building on OSX
Diffstat (limited to 'lib/events/event.cpp')
-rw-r--r-- | lib/events/event.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp index c2b92a50..576e9426 100644 --- a/lib/events/event.cpp +++ b/lib/events/event.cpp @@ -87,7 +87,7 @@ EventPtr _impl::doMakeEvent<Event>(const QJsonObject& obj) { // Check more specific event types first if (auto e = doMakeEvent<RoomEvent>(obj)) - return e; + return ptrCast<Event>(move(e)); return makeIfMatches<Event, TypingEvent, ReceiptEvent, TagEvent, ReadMarkerEvent, DirectChatEvent>( @@ -162,7 +162,7 @@ RoomEventPtr _impl::doMakeEvent(const QJsonObject& obj) { // Check more specific event types first if (auto e = doMakeEvent<StateEventBase>(obj)) - return e; + return ptrCast<RoomEvent>(move(e)); return makeIfMatches<RoomEvent, RoomMessageEvent, RedactionEvent>(obj, obj["type"].toString()); |