aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/login.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-29 22:22:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-29 22:22:49 +0900
commitb55334ac0fe89f780776bc4eab90ffe1ca3c57bb (patch)
tree1a45c0ccfec8f5f7ba37eb4385cdc7f61afa0c97 /lib/csapi/login.cpp
parentf5c2e47fa1ab84fdaffe03c30ba973d7dea5ac05 (diff)
parent1e6510790dab6b9141ae52993987b406399668cd (diff)
downloadlibquotient-b55334ac0fe89f780776bc4eab90ffe1ca3c57bb.tar.gz
libquotient-b55334ac0fe89f780776bc4eab90ffe1ca3c57bb.zip
Merge branch 'cs-api-0.4.0'
Diffstat (limited to 'lib/csapi/login.cpp')
-rw-r--r--lib/csapi/login.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/csapi/login.cpp b/lib/csapi/login.cpp
index 363b6037..4d15a30b 100644
--- a/lib/csapi/login.cpp
+++ b/lib/csapi/login.cpp
@@ -16,14 +16,13 @@ namespace QMatrixClient
{
// Converters
- template <> struct FromJson<GetLoginFlowsJob::LoginFlow>
+ template <> struct FromJsonObject<GetLoginFlowsJob::LoginFlow>
{
- GetLoginFlowsJob::LoginFlow operator()(const QJsonValue& jv)
+ GetLoginFlowsJob::LoginFlow operator()(const QJsonObject& jo) const
{
- const auto& _json = jv.toObject();
GetLoginFlowsJob::LoginFlow result;
result.type =
- fromJson<QString>(_json.value("type"_ls));
+ fromJson<QString>(jo.value("type"_ls));
return result;
}