aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/users.cpp')
-rw-r--r--lib/csapi/users.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/csapi/users.cpp b/lib/csapi/users.cpp
index 77c297dd..5d2a6133 100644
--- a/lib/csapi/users.cpp
+++ b/lib/csapi/users.cpp
@@ -13,12 +13,10 @@ using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace Quotient
-{
+namespace Quotient {
template <>
-struct JsonObjectConverter<SearchUserDirectoryJob::User>
-{
+struct JsonObjectConverter<SearchUserDirectoryJob::User> {
static void fillFrom(const QJsonObject& jo,
SearchUserDirectoryJob::User& result)
{
@@ -30,19 +28,15 @@ struct JsonObjectConverter<SearchUserDirectoryJob::User>
} // namespace Quotient
-class SearchUserDirectoryJob::Private
-{
+class SearchUserDirectoryJob::Private {
public:
QVector<User> results;
bool limited;
};
-static const auto SearchUserDirectoryJobName =
- QStringLiteral("SearchUserDirectoryJob");
-
SearchUserDirectoryJob::SearchUserDirectoryJob(const QString& searchTerm,
Omittable<int> limit)
- : BaseJob(HttpVerb::Post, SearchUserDirectoryJobName,
+ : BaseJob(HttpVerb::Post, QStringLiteral("SearchUserDirectoryJob"),
basePath % "/user_directory/search")
, d(new Private)
{