aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roommessageevent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-03 17:57:42 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-05 21:01:34 +0900
commit816377ea3c204f22698e1458b815fdd3c3837adc (patch)
tree092a711c6504c9e1945e5e1b566ee362123f57ef /lib/events/roommessageevent.h
parente3c1b93483eafbb94f1224b57e562984f4100538 (diff)
downloadlibquotient-816377ea3c204f22698e1458b815fdd3c3837adc.tar.gz
libquotient-816377ea3c204f22698e1458b815fdd3c3837adc.zip
More defaults to construct LocationContent and PlayableContent
Diffstat (limited to 'lib/events/roommessageevent.h')
-rw-r--r--lib/events/roommessageevent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/events/roommessageevent.h b/lib/events/roommessageevent.h
index a4ba6e65..5657135b 100644
--- a/lib/events/roommessageevent.h
+++ b/lib/events/roommessageevent.h
@@ -122,7 +122,7 @@ namespace QMatrixClient
{
public:
LocationContent(const QString& geoUri,
- const ImageInfo& thumbnail);
+ const Thumbnail& thumbnail = {});
explicit LocationContent(const QJsonObject& json);
QMimeType type() const override;
@@ -142,6 +142,7 @@ namespace QMatrixClient
class PlayableContent : public ContentT
{
public:
+ using ContentT::ContentT;
PlayableContent(const QJsonObject& json)
: ContentT(json)
, duration(ContentT::originalInfoJson["duration"_ls].toInt())