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-01 21:08:06 +0900 |
commit | da16225dfbec9b155c2c299757203f7676ac6ccf (patch) | |
tree | a515c9a73c55f3123f145dba40853dbacbb9ebff /lib/events | |
parent | 2a341e30ef2db74b331a8870ceb2f182af68f194 (diff) | |
download | libquotient-da16225dfbec9b155c2c299757203f7676ac6ccf.tar.gz libquotient-da16225dfbec9b155c2c299757203f7676ac6ccf.zip |
Fix building on OSX
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/event.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp index 193250de..1d5f1b0d 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>( |