diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-26 20:18:32 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-26 20:18:32 +0900 |
commit | 6a4af80a7199753b493b17684162673b024d2191 (patch) | |
tree | 54cda4e8d95ce33cfa090893b13aa83fef016c35 /lib/csapi/notifications.cpp | |
parent | c5d06cf378e820ca4290998a5580e87957daf061 (diff) | |
download | libquotient-6a4af80a7199753b493b17684162673b024d2191.tar.gz libquotient-6a4af80a7199753b493b17684162673b024d2191.zip |
lib/csapi/: regenerate job classes from the most recent templates
The second part to close #208.
Diffstat (limited to 'lib/csapi/notifications.cpp')
-rw-r--r-- | lib/csapi/notifications.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/csapi/notifications.cpp b/lib/csapi/notifications.cpp index 19b2e058..17628cc5 100644 --- a/lib/csapi/notifications.cpp +++ b/lib/csapi/notifications.cpp @@ -20,20 +20,20 @@ namespace QMatrixClient { GetNotificationsJob::Notification operator()(const QJsonValue& jv) { - const auto& o = jv.toObject(); + const auto& _json = jv.toObject(); GetNotificationsJob::Notification result; result.actions = - fromJson<QVector<QJsonObject>>(o.value("actions")); + fromJson<QVector<QJsonObject>>(_json.value("actions")); result.event = - fromJson<EventPtr>(o.value("event")); + fromJson<EventPtr>(_json.value("event")); result.profileTag = - fromJson<QString>(o.value("profile_tag")); + fromJson<QString>(_json.value("profile_tag")); result.read = - fromJson<bool>(o.value("read")); + fromJson<bool>(_json.value("read")); result.roomId = - fromJson<QString>(o.value("room_id")); + fromJson<QString>(_json.value("room_id")); result.ts = - fromJson<qint64>(o.value("ts")); + fromJson<qint64>(_json.value("ts")); return result; } |