aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/wellknown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/wellknown.cpp')
-rw-r--r--lib/csapi/wellknown.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/csapi/wellknown.cpp b/lib/csapi/wellknown.cpp
index 9a52a2a5..464068e7 100644
--- a/lib/csapi/wellknown.cpp
+++ b/lib/csapi/wellknown.cpp
@@ -12,8 +12,7 @@ using namespace Quotient;
static const auto basePath = QStringLiteral("/.well-known");
-class GetWellknownJob::Private
-{
+class GetWellknownJob::Private {
public:
DiscoveryInformation data;
};
@@ -24,11 +23,9 @@ QUrl GetWellknownJob::makeRequestUrl(QUrl baseUrl)
basePath % "/matrix/client");
}
-static const auto GetWellknownJobName = QStringLiteral("GetWellknownJob");
-
GetWellknownJob::GetWellknownJob()
- : BaseJob(HttpVerb::Get, GetWellknownJobName, basePath % "/matrix/client",
- false)
+ : BaseJob(HttpVerb::Get, QStringLiteral("GetWellknownJob"),
+ basePath % "/matrix/client", false)
, d(new Private)
{}
@@ -39,5 +36,6 @@ const DiscoveryInformation& GetWellknownJob::data() const { return d->data; }
BaseJob::Status GetWellknownJob::parseJson(const QJsonDocument& data)
{
fromJson(data, d->data);
+
return Success;
}