aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomkeyevent.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-09 10:19:14 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-23 07:57:43 +0200
commit19746de7426aeb67eb90e8c48448356691e270b0 (patch)
treea398f362ff7351e86afb4af87b459f335b7efb10 /lib/events/roomkeyevent.h
parent7576f77799c3d446d3376b0801f218a86320480d (diff)
downloadlibquotient-19746de7426aeb67eb90e8c48448356691e270b0.tar.gz
libquotient-19746de7426aeb67eb90e8c48448356691e270b0.zip
Use QUO_CONTENT_GETTER
In keyverificationevent.*, this massively shortens repetitive getter definitions; the remaining few non-trivial ones are moved to keyverificationevent.h, dropping the respective .cpp file and therefore the dedicated translation unit. In roomkeyevent.h, it's just shorter.
Diffstat (limited to 'lib/events/roomkeyevent.h')
-rw-r--r--lib/events/roomkeyevent.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/events/roomkeyevent.h b/lib/events/roomkeyevent.h
index 3093db41..9eb2854b 100644
--- a/lib/events/roomkeyevent.h
+++ b/lib/events/roomkeyevent.h
@@ -16,9 +16,9 @@ public:
const QString& sessionId, const QString& sessionKey,
const QString& senderId);
- QString algorithm() const { return contentPart<QString>("algorithm"_ls); }
- QString roomId() const { return contentPart<QString>(RoomIdKeyL); }
- QString sessionId() const { return contentPart<QString>("session_id"_ls); }
+ QUO_CONTENT_GETTER(QString, algorithm)
+ QUO_CONTENT_GETTER(QString, roomId)
+ QUO_CONTENT_GETTER(QString, sessionId)
QByteArray sessionKey() const
{
return contentPart<QString>("session_key"_ls).toLatin1();