From bcdede472add732c49c95564034c8cfa1c38c725 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 30 Nov 2017 03:36:29 +0900 Subject: Generated jobs: Apply naming convention to parameters It's now camelCase everywhere, even if The Spec uses snake_case (it is not consistent in that respect). --- jobs/generated/kicking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jobs/generated/kicking.cpp') diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp index 28d51d05..a0719aa2 100644 --- a/jobs/generated/kicking.cpp +++ b/jobs/generated/kicking.cpp @@ -12,14 +12,14 @@ using namespace QMatrixClient; static const auto basePath = QStringLiteral("/_matrix/client/r0"); -KickJob::KickJob(QString roomId, QString user_id, QString reason) +KickJob::KickJob(QString roomId, QString userId, QString reason) : BaseJob(HttpVerb::Post, "KickJob", basePath % "/rooms/" % roomId % "/kick", Query { } ) { Data _data; - _data.insert("user_id", toJson(user_id)); + _data.insert("user_id", toJson(userId)); if (!reason.isEmpty()) _data.insert("reason", toJson(reason)); setRequestData(_data); -- cgit v1.2.3