From a5e14da86c3299ca8d36eb4a4eb58ce2a245dc4e Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 22 May 2017 16:55:41 +0900 Subject: Fixed building with CLang 3.5 --- events/roommessageevent.cpp | 18 +++++++++--------- 1 file 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, - "m.emote", make, - "m.notice", make, - "m.image", make, - "m.file", make, - "m.location", make, - "m.video", makeVideo, - "m.audio", make, + "m.text", &make, + "m.emote", &make, + "m.notice", &make, + "m.image", &make, + "m.file", &make, + "m.location", &make, + "m.video", &makeVideo, + "m.audio", &make, // Insert new message types before this line - makeUnknown + &makeUnknown ); std::tie(_msgtype, _content) = factory(content); } -- cgit v1.2.3