aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-01 21:08:06 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-01 21:08:06 +0900
commitda16225dfbec9b155c2c299757203f7676ac6ccf (patch)
treea515c9a73c55f3123f145dba40853dbacbb9ebff /lib/events
parent2a341e30ef2db74b331a8870ceb2f182af68f194 (diff)
downloadlibquotient-da16225dfbec9b155c2c299757203f7676ac6ccf.tar.gz
libquotient-da16225dfbec9b155c2c299757203f7676ac6ccf.zip
Fix building on OSX
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/event.cpp2
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>(