From 44ce399ab59204864b8c0c70d9b92e73e7e0135a Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 17 May 2019 21:19:32 +0900 Subject: Minor code refactoring --- lib/events/accountdataevents.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/events') 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(contentJson()[#_ContentKey##_ls]); } \ + { return content(#_ContentKey##_ls); } \ }; \ REGISTER_EVENT_TYPE(_Name) \ // End of macro -- cgit v1.2.3