Skip to content

Commit

Permalink
csapi: formatted with the current .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Aug 21, 2023
1 parent 79257a0 commit 3257b04
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
6 changes: 2 additions & 4 deletions Quotient/csapi/appservice_room_directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

using namespace Quotient;

UpdateAppserviceRoomDirectoryVisibilityJob::
UpdateAppserviceRoomDirectoryVisibilityJob(const QString& networkId,
const QString& roomId,
const QString& visibility)
UpdateAppserviceRoomDirectoryVisibilityJob::UpdateAppserviceRoomDirectoryVisibilityJob(
const QString& networkId, const QString& roomId, const QString& visibility)
: BaseJob(HttpVerb::Put,
QStringLiteral("UpdateAppserviceRoomDirectoryVisibilityJob"),
makePath("/_matrix/client/v3", "/directory/list/appservice/",
Expand Down
3 changes: 1 addition & 2 deletions Quotient/csapi/registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ QUrl CheckUsernameAvailabilityJob::makeRequestUrl(QUrl baseUrl,
queryToCheckUsernameAvailability(username));
}

CheckUsernameAvailabilityJob::CheckUsernameAvailabilityJob(
const QString& username)
CheckUsernameAvailabilityJob::CheckUsernameAvailabilityJob(const QString& username)
: BaseJob(HttpVerb::Get, QStringLiteral("CheckUsernameAvailabilityJob"),
makePath("/_matrix/client/v3", "/register/available"),
queryToCheckUsernameAvailability(username), {}, false)
Expand Down
5 changes: 2 additions & 3 deletions Quotient/csapi/registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,8 @@ class QUOTIENT_API DeactivateAccountJob : public BaseJob {
* it must return an `id_server_unbind_result` of
* `no-support`.
*/
explicit DeactivateAccountJob(
const Omittable<AuthenticationData>& auth = none,
const QString& idServer = {});
explicit DeactivateAccountJob(const Omittable<AuthenticationData>& auth = none,
const QString& idServer = {});

// Result properties

Expand Down
9 changes: 4 additions & 5 deletions Quotient/csapi/relations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ QUrl GetRelatingEventsWithRelTypeAndEventTypeJob::makeRequestUrl(
queryToGetRelatingEventsWithRelTypeAndEventType(from, to, limit, dir));
}

GetRelatingEventsWithRelTypeAndEventTypeJob::
GetRelatingEventsWithRelTypeAndEventTypeJob(
const QString& roomId, const QString& eventId, const QString& relType,
const QString& eventType, const QString& from, const QString& to,
Omittable<int> limit, const QString& dir)
GetRelatingEventsWithRelTypeAndEventTypeJob::GetRelatingEventsWithRelTypeAndEventTypeJob(
const QString& roomId, const QString& eventId, const QString& relType,
const QString& eventType, const QString& from, const QString& to,
Omittable<int> limit, const QString& dir)
: BaseJob(HttpVerb::Get,
QStringLiteral("GetRelatingEventsWithRelTypeAndEventTypeJob"),
makePath("/_matrix/client/v1", "/rooms/", roomId, "/relations/",
Expand Down
3 changes: 1 addition & 2 deletions Quotient/csapi/relations.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ class QUOTIENT_API GetRelatingEventsWithRelTypeJob : public BaseJob {
* token from page 1 and a `to` token from page 2 to paginate over the same
* range, however.
*/
class QUOTIENT_API GetRelatingEventsWithRelTypeAndEventTypeJob
: public BaseJob {
class QUOTIENT_API GetRelatingEventsWithRelTypeAndEventTypeJob : public BaseJob {
public:
/*! \brief Get the child events for a given parent event, with a given
* `relType` and `eventType`.
Expand Down

0 comments on commit 3257b04

Please sign in to comment.