From 2a341e30ef2db74b331a8870ceb2f182af68f194 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 1 May 2018 20:45:18 +0900 Subject: GetNotificationsJob: don't alias EventPtr with Event It's useless and misleading. --- lib/jobs/generated/notifications.cpp | 2 +- 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>(o.value("actions")); result.event = - fromJson(o.value("event")); + fromJson(o.value("event")); result.profileTag = fromJson(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 actions; - Event event; + EventPtr event; QString profileTag; bool read; QString roomId; -- cgit v1.2.3