aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/appservice_room_directory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/appservice_room_directory.cpp')
-rw-r--r--lib/csapi/appservice_room_directory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/appservice_room_directory.cpp b/lib/csapi/appservice_room_directory.cpp
index c989559f..dff7e032 100644
--- a/lib/csapi/appservice_room_directory.cpp
+++ b/lib/csapi/appservice_room_directory.cpp
@@ -15,7 +15,7 @@ UpdateAppserviceRoomDirectoryVisibilityJob::
makePath("/_matrix/client/v3", "/directory/list/appservice/",
networkId, "/", roomId))
{
- QJsonObject _data;
- addParam<>(_data, QStringLiteral("visibility"), visibility);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<>(_dataJson, QStringLiteral("visibility"), visibility);
+ setRequestData({ _dataJson });
}