diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-14 11:20:43 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-14 11:23:48 +0200 |
commit | 572b727b22d66a79431326c924236ef431fd972b (patch) | |
tree | 5c60030964cf8ca9d279cd66fcdc22bd1ac92b48 /lib/events/roomkeyevent.h | |
parent | b32c1c27ae412d073a7e98bdaf22678bdc66ab23 (diff) | |
download | libquotient-572b727b22d66a79431326c924236ef431fd972b.tar.gz libquotient-572b727b22d66a79431326c924236ef431fd972b.zip |
Cleanup across the board
Mainly driven by clang-tidy and SonarCloud warnings (sadly, SonarCloud
doesn't store historical reports so no link can be provided here).
Diffstat (limited to 'lib/events/roomkeyevent.h')
-rw-r--r-- | lib/events/roomkeyevent.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/events/roomkeyevent.h b/lib/events/roomkeyevent.h index c4df7936..ed4c9440 100644 --- a/lib/events/roomkeyevent.h +++ b/lib/events/roomkeyevent.h @@ -16,7 +16,10 @@ public: QString algorithm() const { return contentPart<QString>("algorithm"_ls); } QString roomId() const { return contentPart<QString>(RoomIdKeyL); } QString sessionId() const { return contentPart<QString>("session_id"_ls); } - QString sessionKey() const { return contentPart<QString>("session_key"_ls); } + QByteArray sessionKey() const + { + return contentPart<QString>("session_key"_ls).toLatin1(); + } }; REGISTER_EVENT_TYPE(RoomKeyEvent) } // namespace Quotient |