diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-05-22 16:55:41 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-05-22 16:55:41 +0900 |
commit | a5e14da86c3299ca8d36eb4a4eb58ce2a245dc4e (patch) | |
tree | 49caf6450be52072d8f1e4e40e2dfb8490d73732 /events/roommessageevent.cpp | |
parent | be838b2f4f294a7e1b3f8a771f91d9d1eac14431 (diff) | |
download | libquotient-a5e14da86c3299ca8d36eb4a4eb58ce2a245dc4e.tar.gz libquotient-a5e14da86c3299ca8d36eb4a4eb58ce2a245dc4e.zip |
Fixed building with CLang 3.5
Diffstat (limited to 'events/roommessageevent.cpp')
-rw-r--r-- | events/roommessageevent.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/events/roommessageevent.cpp b/events/roommessageevent.cpp index 49bb4053..19da8827 100644 --- a/events/roommessageevent.cpp +++ b/events/roommessageevent.cpp @@ -64,16 +64,16 @@ RoomMessageEvent::RoomMessageEvent(const QJsonObject& obj) _plainBody = content["body"].toString(); auto factory = lookup(content["msgtype"].toString(), - "m.text", make<CType::Text, TextContent>, - "m.emote", make<CType::Emote, TextContent>, - "m.notice", make<CType::Notice, TextContent>, - "m.image", make<CType::Image, ImageContent>, - "m.file", make<CType::File, FileContent>, - "m.location", make<CType::Location, LocationContent>, - "m.video", makeVideo, - "m.audio", make<CType::Audio, AudioContent>, + "m.text", &make<CType::Text, TextContent>, + "m.emote", &make<CType::Emote, TextContent>, + "m.notice", &make<CType::Notice, TextContent>, + "m.image", &make<CType::Image, ImageContent>, + "m.file", &make<CType::File, FileContent>, + "m.location", &make<CType::Location, LocationContent>, + "m.video", &makeVideo, + "m.audio", &make<CType::Audio, AudioContent>, // Insert new message types before this line - makeUnknown + &makeUnknown ); std::tie(_msgtype, _content) = factory(content); } |