diff options
Diffstat (limited to 'lib/csapi/login.cpp')
-rw-r--r-- | lib/csapi/login.cpp | 7 |
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; } |