diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-05-17 21:19:32 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-05-17 21:19:32 +0900 |
commit | 44ce399ab59204864b8c0c70d9b92e73e7e0135a (patch) | |
tree | e33dcf1c67367105dd2585c326c66e4af67c55cf /lib/events/accountdataevents.h | |
parent | d6f39dcb0de69322479f287514a8c36afcb3fe7b (diff) | |
download | libquotient-44ce399ab59204864b8c0c70d9b92e73e7e0135a.tar.gz libquotient-44ce399ab59204864b8c0c70d9b92e73e7e0135a.zip |
Minor code refactoring
Diffstat (limited to 'lib/events/accountdataevents.h')
-rw-r--r-- | lib/events/accountdataevents.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h index a99d85ac..ffee5ba6 100644 --- a/lib/events/accountdataevents.h +++ b/lib/events/accountdataevents.h @@ -85,7 +85,7 @@ namespace QMatrixClient toJson(std::move(content)) } }) \ { } \ auto _ContentKey() const \ - { return fromJson<content_type>(contentJson()[#_ContentKey##_ls]); } \ + { return content<content_type>(#_ContentKey##_ls); } \ }; \ REGISTER_EVENT_TYPE(_Name) \ // End of macro |