aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_upgrades.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/room_upgrades.cpp')
-rw-r--r--lib/csapi/room_upgrades.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/csapi/room_upgrades.cpp b/lib/csapi/room_upgrades.cpp
index 1d6006ef..244f5b74 100644
--- a/lib/csapi/room_upgrades.cpp
+++ b/lib/csapi/room_upgrades.cpp
@@ -12,16 +12,13 @@ using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-class UpgradeRoomJob::Private
-{
+class UpgradeRoomJob::Private {
public:
QString replacementRoom;
};
-static const auto UpgradeRoomJobName = QStringLiteral("UpgradeRoomJob");
-
UpgradeRoomJob::UpgradeRoomJob(const QString& roomId, const QString& newVersion)
- : BaseJob(HttpVerb::Post, UpgradeRoomJobName,
+ : BaseJob(HttpVerb::Post, QStringLiteral("UpgradeRoomJob"),
basePath % "/rooms/" % roomId % "/upgrade")
, d(new Private)
{