aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/leaving.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/leaving.cpp')
-rw-r--r--lib/csapi/leaving.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/csapi/leaving.cpp b/lib/csapi/leaving.cpp
index abf04888..2fa1da56 100644
--- a/lib/csapi/leaving.cpp
+++ b/lib/csapi/leaving.cpp
@@ -18,10 +18,8 @@ QUrl LeaveRoomJob::makeRequestUrl(QUrl baseUrl, const QString& roomId)
basePath % "/rooms/" % roomId % "/leave");
}
-static const auto LeaveRoomJobName = QStringLiteral("LeaveRoomJob");
-
LeaveRoomJob::LeaveRoomJob(const QString& roomId)
- : BaseJob(HttpVerb::Post, LeaveRoomJobName,
+ : BaseJob(HttpVerb::Post, QStringLiteral("LeaveRoomJob"),
basePath % "/rooms/" % roomId % "/leave")
{}
@@ -31,9 +29,7 @@ QUrl ForgetRoomJob::makeRequestUrl(QUrl baseUrl, const QString& roomId)
basePath % "/rooms/" % roomId % "/forget");
}
-static const auto ForgetRoomJobName = QStringLiteral("ForgetRoomJob");
-
ForgetRoomJob::ForgetRoomJob(const QString& roomId)
- : BaseJob(HttpVerb::Post, ForgetRoomJobName,
+ : BaseJob(HttpVerb::Post, QStringLiteral("ForgetRoomJob"),
basePath % "/rooms/" % roomId % "/forget")
{}