diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-10-29 22:04:40 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-11-01 08:43:09 +0900 |
commit | 60bb1cf942ad0815dcf42cbfe8acd1e076d848cf (patch) | |
tree | 3998826b6b78d9f7d3100570aa28aa86f8b040fd /lib/events/roommessageevent.h | |
parent | 8a574f8727cc8b1c91acf0840e99c9382c289098 (diff) | |
download | libquotient-60bb1cf942ad0815dcf42cbfe8acd1e076d848cf.tar.gz libquotient-60bb1cf942ad0815dcf42cbfe8acd1e076d848cf.zip |
Derive Omittable<> from std::optional<>
That breaks API all over the place but:
1. The fixes are trivial.
2. More of std:: is used instead of home-baking the same stuff.
Diffstat (limited to 'lib/events/roommessageevent.h')
-rw-r--r-- | lib/events/roommessageevent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/roommessageevent.h b/lib/events/roommessageevent.h index e95aabfc..ded5e572 100644 --- a/lib/events/roommessageevent.h +++ b/lib/events/roommessageevent.h @@ -114,7 +114,7 @@ namespace EventContent { */ class TextContent : public TypedBase { public: - TextContent(const QString& text, const QString& contentType, + TextContent(QString text, const QString& contentType, Omittable<RelatesTo> relatesTo = none); explicit TextContent(const QJsonObject& json); |