aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-21 17:33:26 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-21 17:33:26 +0900
commit128b7259a7f6cc39545711323a074103ea9520f7 (patch)
tree07e6843a881c5e870da5384ba8c4de05d777910f /jobs
parent8ec38f87990cd5355a4cf0cf0533a6459fa2f6e3 (diff)
downloadlibquotient-128b7259a7f6cc39545711323a074103ea9520f7.tar.gz
libquotient-128b7259a7f6cc39545711323a074103ea9520f7.zip
Use QStringLiteral instead of bare QString constructors for string constants
For job endpoints, we should eventually move to QLatin1String or QByteArray instead. Maybe later.
Diffstat (limited to 'jobs')
-rw-r--r--jobs/joinroomjob.cpp2
-rw-r--r--jobs/roommessagesjob.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/jobs/joinroomjob.cpp b/jobs/joinroomjob.cpp
index d465dd42..66a75089 100644
--- a/jobs/joinroomjob.cpp
+++ b/jobs/joinroomjob.cpp
@@ -29,7 +29,7 @@ class JoinRoomJob::Private
JoinRoomJob::JoinRoomJob(const QString& roomAlias)
: BaseJob(HttpVerb::Post, "JoinRoomJob",
- QString("_matrix/client/r0/join/%1").arg(roomAlias))
+ QStringLiteral("_matrix/client/r0/join/%1").arg(roomAlias))
, d(new Private)
{
}
diff --git a/jobs/roommessagesjob.cpp b/jobs/roommessagesjob.cpp
index c527cc71..9af1b3a6 100644
--- a/jobs/roommessagesjob.cpp
+++ b/jobs/roommessagesjob.cpp
@@ -30,7 +30,7 @@ class RoomMessagesJob::Private
RoomMessagesJob::RoomMessagesJob(const QString& roomId, const QString& from,
int limit, FetchDirection dir)
: BaseJob(HttpVerb::Get, "RoomMessagesJob",
- QString("/_matrix/client/r0/rooms/%1/messages").arg(roomId),
+ QStringLiteral("/_matrix/client/r0/rooms/%1/messages").arg(roomId),
Query(
{ { "from", from }
, { "dir", dir == FetchDirection::Backward ? "b" : "f" }