diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-14 14:12:03 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-14 14:12:03 +0900 |
commit | 4ced9792f27ed3d891c1f7772ae30d9fe452dd79 (patch) | |
tree | 30c4372cdb8dab60c54804ebd0e2fd26efe07345 /lib/jobs/generated/room_send.cpp | |
parent | e5cb9b6380040e40de1b3766ac90296d3828375a (diff) | |
download | libquotient-4ced9792f27ed3d891c1f7772ae30d9fe452dd79.tar.gz libquotient-4ced9792f27ed3d891c1f7772ae30d9fe452dd79.zip |
jobs/generated: Overload toJson() instead of operator QJsonObject()/QJsonValue()
It slightly reduces the header interface and shortcuts the actual call chain (not that it had any performance implications, just easier reasoning).
Diffstat (limited to 'lib/jobs/generated/room_send.cpp')
-rw-r--r-- | lib/jobs/generated/room_send.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/generated/room_send.cpp b/lib/jobs/generated/room_send.cpp index c9a3280d..9637a205 100644 --- a/lib/jobs/generated/room_send.cpp +++ b/lib/jobs/generated/room_send.cpp @@ -23,7 +23,7 @@ SendMessageJob::SendMessageJob(const QString& roomId, const QString& eventType, basePath % "/rooms/" % roomId % "/send/" % eventType % "/" % txnId) , d(new Private) { - setRequestData(Data(body)); + setRequestData(Data(toJson(body))); } SendMessageJob::~SendMessageJob() = default; |