From 4ced9792f27ed3d891c1f7772ae30d9fe452dd79 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 14 Apr 2018 14:12:03 +0900 Subject: 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). --- lib/jobs/generated/room_send.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/jobs/generated/room_send.cpp') 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; -- cgit v1.2.3