aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomavatarevent.h
diff options
context:
space:
mode:
authorMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
committerMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
commitaacc4bcb4a487871daae6717f77605aaba444341 (patch)
tree4f50b6874821667ccb6b91c017e5d041e3846112 /lib/events/roomavatarevent.h
parentc971b924cd62822ed6fb1a0291c483ae73a3ecda (diff)
downloadlibquotient-aacc4bcb4a487871daae6717f77605aaba444341.tar.gz
libquotient-aacc4bcb4a487871daae6717f77605aaba444341.zip
style: apply .clang-format to all .cpp and .h files
Diffstat (limited to 'lib/events/roomavatarevent.h')
-rw-r--r--lib/events/roomavatarevent.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/events/roomavatarevent.h b/lib/events/roomavatarevent.h
index a43d3a85..69cd1f9d 100644
--- a/lib/events/roomavatarevent.h
+++ b/lib/events/roomavatarevent.h
@@ -13,29 +13,29 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
-#include "stateevent.h"
#include "eventcontent.h"
+#include "stateevent.h"
-namespace QMatrixClient
-{
- class RoomAvatarEvent: public StateEvent<EventContent::ImageContent>
+namespace QMatrixClient {
+ class RoomAvatarEvent : public StateEvent<EventContent::ImageContent>
{
- // It's a bit of an overkill to use a full-fledged ImageContent
- // because in reality m.room.avatar usually only has a single URL,
- // without a thumbnail. But The Spec says there be thumbnails, and
- // we follow The Spec.
+ // It's a bit of an overkill to use a full-fledged ImageContent
+ // because in reality m.room.avatar usually only has a single URL,
+ // without a thumbnail. But The Spec says there be thumbnails, and
+ // we follow The Spec.
public:
- DEFINE_EVENT_TYPEID("m.room.avatar", RoomAvatarEvent)
- explicit RoomAvatarEvent(const QJsonObject& obj)
- : StateEvent(typeId(), obj)
- { }
- QUrl url() const { return content().url; }
+ DEFINE_EVENT_TYPEID("m.room.avatar", RoomAvatarEvent)
+ explicit RoomAvatarEvent(const QJsonObject& obj)
+ : StateEvent(typeId(), obj)
+ {
+ }
+ QUrl url() const { return content().url; }
};
REGISTER_EVENT_TYPE(RoomAvatarEvent)
DEFINE_EVENTTYPE_ALIAS(RoomAvatar, RoomAvatarEvent)
-} // namespace QMatrixClient
+} // namespace QMatrixClient