aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomevent.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-22 17:57:06 +0100
committerGitHub <noreply@github.com>2021-12-22 17:57:06 +0100
commitab5da392cda29f7f6ecf7f982e834fc9f008f33d (patch)
tree8f44541cd883d94267a1c31ce4145e69f750798a /lib/events/roomevent.h
parent487e7f5ef75a5a5a4d732027d0b7705fdffb71ca (diff)
parent060af9334049c58767b6457da2d7c07fdb0d171e (diff)
downloadlibquotient-ab5da392cda29f7f6ecf7f982e834fc9f008f33d.tar.gz
libquotient-ab5da392cda29f7f6ecf7f982e834fc9f008f33d.zip
Merge pull request #526 from quotient-im/kitsune/simpler-event-factories
Simplify event factories
Diffstat (limited to 'lib/events/roomevent.h')
-rw-r--r--lib/events/roomevent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/roomevent.h b/lib/events/roomevent.h
index 7f13f6f2..8be58481 100644
--- a/lib/events/roomevent.h
+++ b/lib/events/roomevent.h
@@ -13,7 +13,7 @@ class RedactionEvent;
/** This class corresponds to m.room.* events */
class RoomEvent : public Event {
public:
- using factory_t = EventFactory<RoomEvent>;
+ static inline _impl::EventFactory<RoomEvent> factory { "RoomEvent" };
// RedactionEvent is an incomplete type here so we cannot inline
// constructors and destructors and we cannot use 'using'.