From 21952d689db64bfb11e1cd11a7da802b649f9ae8 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 6 Dec 2017 19:24:03 +0900 Subject: jobs/generated: don't rely on QString's COW; firmer formatting --- jobs/generated/banning.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jobs/generated/banning.cpp') diff --git a/jobs/generated/banning.cpp b/jobs/generated/banning.cpp index 67b0e8a1..61677da6 100644 --- a/jobs/generated/banning.cpp +++ b/jobs/generated/banning.cpp @@ -6,13 +6,14 @@ #include "banning.h" #include "converters.h" + #include using namespace QMatrixClient; static const auto basePath = QStringLiteral("/_matrix/client/r0"); -BanJob::BanJob(QString roomId, QString userId, QString reason) +BanJob::BanJob(const QString& roomId, const QString& userId, const QString& reason) : BaseJob(HttpVerb::Post, "BanJob", basePath % "/rooms/" % roomId % "/ban", Query { } @@ -25,7 +26,7 @@ BanJob::BanJob(QString roomId, QString userId, QString reason) setRequestData(_data); } -UnbanJob::UnbanJob(QString roomId, QString userId) +UnbanJob::UnbanJob(const QString& roomId, const QString& userId) : BaseJob(HttpVerb::Post, "UnbanJob", basePath % "/rooms/" % roomId % "/unban", Query { } -- cgit v1.2.3