diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-06 19:24:03 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-06 19:24:03 +0900 |
commit | 21952d689db64bfb11e1cd11a7da802b649f9ae8 (patch) | |
tree | 6983bdff75a28f465f64d67c2ed8cf6ff5b385df /jobs/generated/banning.cpp | |
parent | 905263ceb5e2e13b862bec0a64f6d84eca3c2e9d (diff) | |
download | libquotient-21952d689db64bfb11e1cd11a7da802b649f9ae8.tar.gz libquotient-21952d689db64bfb11e1cd11a7da802b649f9ae8.zip |
jobs/generated: don't rely on QString's COW; firmer formatting
Diffstat (limited to 'jobs/generated/banning.cpp')
-rw-r--r-- | jobs/generated/banning.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <QtCore/QStringBuilder> 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 { } |