aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/leaving.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-06 19:24:03 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-06 19:24:03 +0900
commit21952d689db64bfb11e1cd11a7da802b649f9ae8 (patch)
tree6983bdff75a28f465f64d67c2ed8cf6ff5b385df /jobs/generated/leaving.cpp
parent905263ceb5e2e13b862bec0a64f6d84eca3c2e9d (diff)
downloadlibquotient-21952d689db64bfb11e1cd11a7da802b649f9ae8.tar.gz
libquotient-21952d689db64bfb11e1cd11a7da802b649f9ae8.zip
jobs/generated: don't rely on QString's COW; firmer formatting
Diffstat (limited to 'jobs/generated/leaving.cpp')
-rw-r--r--jobs/generated/leaving.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/jobs/generated/leaving.cpp b/jobs/generated/leaving.cpp
index 392f1ca8..2cf7fda3 100644
--- a/jobs/generated/leaving.cpp
+++ b/jobs/generated/leaving.cpp
@@ -6,20 +6,21 @@
#include "leaving.h"
#include "converters.h"
+
#include <QtCore/QStringBuilder>
using namespace QMatrixClient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-LeaveRoomJob::LeaveRoomJob(QString roomId)
+LeaveRoomJob::LeaveRoomJob(const QString& roomId)
: BaseJob(HttpVerb::Post, "LeaveRoomJob",
basePath % "/rooms/" % roomId % "/leave",
Query { }
)
{ }
-ForgetRoomJob::ForgetRoomJob(QString roomId)
+ForgetRoomJob::ForgetRoomJob(const QString& roomId)
: BaseJob(HttpVerb::Post, "ForgetRoomJob",
basePath % "/rooms/" % roomId % "/forget",
Query { }