aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/notifications.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/notifications.cpp')
-rw-r--r--lib/csapi/notifications.cpp14
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;
}