diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-16 13:29:02 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-18 19:36:32 +0200 |
commit | 2dd85770cbfd6d9c7506757f25765c05ef74987d (patch) | |
tree | 5de167f66ee610ad01bca776897bd6c8183a66d7 /lib/csapi/refresh.cpp | |
parent | 10867950474a360426685ad888237a5542b0cfac (diff) | |
download | libquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.tar.gz libquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.zip |
Regenerate API files upon the previous commit
Diffstat (limited to 'lib/csapi/refresh.cpp')
-rw-r--r-- | lib/csapi/refresh.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/csapi/refresh.cpp b/lib/csapi/refresh.cpp index 8d4a34ae..284ae4ff 100644 --- a/lib/csapi/refresh.cpp +++ b/lib/csapi/refresh.cpp @@ -10,8 +10,9 @@ RefreshJob::RefreshJob(const QString& refreshToken) : BaseJob(HttpVerb::Post, QStringLiteral("RefreshJob"), makePath("/_matrix/client/v3", "/refresh"), false) { - QJsonObject _data; - addParam<IfNotEmpty>(_data, QStringLiteral("refresh_token"), refreshToken); - setRequestData(std::move(_data)); + QJsonObject _dataJson; + addParam<IfNotEmpty>(_dataJson, QStringLiteral("refresh_token"), + refreshToken); + setRequestData({ _dataJson }); addExpectedKey("access_token"); } |