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.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/lib/csapi/wellknown.cpp b/lib/csapi/wellknown.cpp
index a6107f86..c2bd7822 100644
--- a/lib/csapi/wellknown.cpp
+++ b/lib/csapi/wellknown.cpp
@@ -14,35 +14,30 @@ static const auto basePath = QStringLiteral("/.well-known");
class GetWellknownJob::Private
{
- public:
- DiscoveryInformation data;
+public:
+ DiscoveryInformation data;
};
QUrl GetWellknownJob::makeRequestUrl(QUrl baseUrl)
{
return BaseJob::makeRequestUrl(std::move(baseUrl),
- basePath % "/matrix/client");
+ basePath % "/matrix/client");
}
static const auto GetWellknownJobName = QStringLiteral("GetWellknownJob");
GetWellknownJob::GetWellknownJob()
- : BaseJob(HttpVerb::Get, GetWellknownJobName,
- basePath % "/matrix/client", false)
+ : BaseJob(HttpVerb::Get, GetWellknownJobName, basePath % "/matrix/client",
+ false)
, d(new Private)
-{
-}
+{}
GetWellknownJob::~GetWellknownJob() = default;
-const DiscoveryInformation& GetWellknownJob::data() const
-{
- return d->data;
-}
+const DiscoveryInformation& GetWellknownJob::data() const { return d->data; }
BaseJob::Status GetWellknownJob::parseJson(const QJsonDocument& data)
{
fromJson(data, d->data);
return Success;
}
-