diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-06 22:17:55 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-08 17:43:58 +0200 |
commit | e7a4b5a545b0f59b95ca8097009dbf6eea534db1 (patch) | |
tree | a46e434c077cba00307053169b856142304e5e41 /lib/events/roomevent.h | |
parent | 41f630cf7be6e806e498cb31711f403bf6919ff8 (diff) | |
download | libquotient-e7a4b5a545b0f59b95ca8097009dbf6eea534db1.tar.gz libquotient-e7a4b5a545b0f59b95ca8097009dbf6eea534db1.zip |
Generalise DEFINE_SIMPLE_EVENT
This macro was defined in accountdataevents.h but adding one more
parameter (base class) makes it applicable to pretty much any event
with the content that has one key-value pair (though state events
already have a non-macro solution in the form of
`StateEvent<EventContent::SingleKeyValue>`). Now CustomEvent definition
in quotest.cpp can be replaced with a single line.
Diffstat (limited to 'lib/events/roomevent.h')
0 files changed, 0 insertions, 0 deletions