aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roommessageevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/roommessageevent.cpp')
-rw-r--r--lib/events/roommessageevent.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp
index da8d59ca..991931de 100644
--- a/lib/events/roommessageevent.cpp
+++ b/lib/events/roommessageevent.cpp
@@ -54,8 +54,7 @@ TypedBase* make<TextContent>(const QJsonObject& json)
: nullptr;
}
-struct MsgTypeDesc
-{
+struct MsgTypeDesc {
QString matrixType;
MsgType enumType;
TypedBase* (*maker)(const QJsonObject&);
@@ -174,8 +173,7 @@ RoomMessageEvent::RoomMessageEvent(const QString& plainBody,
{}
RoomMessageEvent::RoomMessageEvent(const QJsonObject& obj)
- : RoomEvent(typeId(), obj)
- , _content(nullptr)
+ : RoomEvent(typeId(), obj), _content(nullptr)
{
if (isRedacted())
return;
@@ -281,8 +279,7 @@ TextContent::TextContent(const QString& text, const QString& contentType,
mimeType = QMimeDatabase().mimeTypeForName("text/html");
}
-namespace QMatrixClient
-{
+namespace QMatrixClient {
// Overload the default fromJson<> logic that defined in converters.h
// as we want
template <>
@@ -350,8 +347,7 @@ void TextContent::fillJson(QJsonObject* json) const
LocationContent::LocationContent(const QString& geoUri,
const Thumbnail& thumbnail)
- : geoUri(geoUri)
- , thumbnail(thumbnail)
+ : geoUri(geoUri), thumbnail(thumbnail)
{}
LocationContent::LocationContent(const QJsonObject& json)