aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/search.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/search.cpp')
-rw-r--r--lib/csapi/search.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/search.cpp b/lib/csapi/search.cpp
index 92300351..4e2c9e92 100644
--- a/lib/csapi/search.cpp
+++ b/lib/csapi/search.cpp
@@ -19,8 +19,8 @@ SearchJob::SearchJob(const Categories& searchCategories,
makePath("/_matrix/client/v3", "/search"),
queryToSearch(nextBatch))
{
- QJsonObject _data;
- addParam<>(_data, QStringLiteral("search_categories"), searchCategories);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<>(_dataJson, QStringLiteral("search_categories"), searchCategories);
+ setRequestData({ _dataJson });
addExpectedKey("search_categories");
}