diff options
Diffstat (limited to 'jobs/generated/directory.cpp')
-rw-r--r-- | jobs/generated/directory.cpp | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/jobs/generated/directory.cpp b/jobs/generated/directory.cpp index dcec75ac..4e61ed74 100644 --- a/jobs/generated/directory.cpp +++ b/jobs/generated/directory.cpp @@ -2,7 +2,6 @@ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ - #include "directory.h" #include "converters.h" @@ -15,9 +14,7 @@ static const auto basePath = QStringLiteral("/_matrix/client/r0/directory"); SetRoomAliasJob::SetRoomAliasJob(const QString& roomAlias, const QString& roomId) : BaseJob(HttpVerb::Put, "SetRoomAliasJob", - basePath % "/room/" % roomAlias, - Query { } - ) + basePath % "/room/" % roomAlias) { QJsonObject _data; if (!roomId.isEmpty()) @@ -34,16 +31,13 @@ class GetRoomIdByAliasJob::Private GetRoomIdByAliasJob::GetRoomIdByAliasJob(const QString& roomAlias) : BaseJob(HttpVerb::Get, "GetRoomIdByAliasJob", - basePath % "/room/" % roomAlias, - Query { }, Data { }, false - ), d(new Private) -{ } - -GetRoomIdByAliasJob::~GetRoomIdByAliasJob() + basePath % "/room/" % roomAlias, false) + , d(new Private) { - delete d; } +GetRoomIdByAliasJob::~GetRoomIdByAliasJob() = default; + const QString& GetRoomIdByAliasJob::roomId() const { return d->roomId; @@ -64,8 +58,7 @@ BaseJob::Status GetRoomIdByAliasJob::parseJson(const QJsonDocument& data) DeleteRoomAliasJob::DeleteRoomAliasJob(const QString& roomAlias) : BaseJob(HttpVerb::Delete, "DeleteRoomAliasJob", - basePath % "/room/" % roomAlias, - Query { } - ) -{ } + basePath % "/room/" % roomAlias) +{ +} |