diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-01 20:45:18 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-01 20:54:18 +0900 |
commit | 2a341e30ef2db74b331a8870ceb2f182af68f194 (patch) | |
tree | ee5eddbaaace62e8d48377e8f3d100a6b440bdd4 /lib/jobs/generated | |
parent | 21c62057bebd676a1950aa405a5f1a2c316c22ac (diff) | |
download | libquotient-2a341e30ef2db74b331a8870ceb2f182af68f194.tar.gz libquotient-2a341e30ef2db74b331a8870ceb2f182af68f194.zip |
GetNotificationsJob: don't alias EventPtr with Event
It's useless and misleading.
Diffstat (limited to 'lib/jobs/generated')
-rw-r--r-- | lib/jobs/generated/notifications.cpp | 2 | ||||
-rw-r--r-- | lib/jobs/generated/notifications.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/jobs/generated/notifications.cpp b/lib/jobs/generated/notifications.cpp index ffd17b8a..df6b10ba 100644 --- a/lib/jobs/generated/notifications.cpp +++ b/lib/jobs/generated/notifications.cpp @@ -21,7 +21,7 @@ namespace QMatrixClient result.actions = fromJson<QVector<QJsonObject>>(o.value("actions")); result.event = - fromJson<GetNotificationsJob::Event>(o.value("event")); + fromJson<EventPtr>(o.value("event")); result.profileTag = fromJson<QString>(o.value("profile_tag")); result.read = diff --git a/lib/jobs/generated/notifications.h b/lib/jobs/generated/notifications.h index 72318f69..798b9576 100644 --- a/lib/jobs/generated/notifications.h +++ b/lib/jobs/generated/notifications.h @@ -22,12 +22,10 @@ namespace QMatrixClient public: // Inner data structures - using Event = EventPtr; - struct Notification { QVector<QJsonObject> actions; - Event event; + EventPtr event; QString profileTag; bool read; QString roomId; |