aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/whoami.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/whoami.cpp')
-rw-r--r--lib/csapi/whoami.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/csapi/whoami.cpp b/lib/csapi/whoami.cpp
index fb7f54dc..8d4681e4 100644
--- a/lib/csapi/whoami.cpp
+++ b/lib/csapi/whoami.cpp
@@ -12,8 +12,7 @@ using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-class GetTokenOwnerJob::Private
-{
+class GetTokenOwnerJob::Private {
public:
QString userId;
};
@@ -24,10 +23,9 @@ QUrl GetTokenOwnerJob::makeRequestUrl(QUrl baseUrl)
basePath % "/account/whoami");
}
-static const auto GetTokenOwnerJobName = QStringLiteral("GetTokenOwnerJob");
-
GetTokenOwnerJob::GetTokenOwnerJob()
- : BaseJob(HttpVerb::Get, GetTokenOwnerJobName, basePath % "/account/whoami")
+ : BaseJob(HttpVerb::Get, QStringLiteral("GetTokenOwnerJob"),
+ basePath % "/account/whoami")
, d(new Private)
{}