aboutsummaryrefslogtreecommitdiff
path: root/events/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'events/event.cpp')
-rw-r--r--events/event.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/events/event.cpp b/events/event.cpp
index d05d666f..0c7700ee 100644
--- a/events/event.cpp
+++ b/events/event.cpp
@@ -151,11 +151,11 @@ bool Event::parseJson(const QJsonObject& obj)
return correct;
}
-QList<Event*> QMatrixClient::eventListFromJson(const QJsonArray& json)
+Events QMatrixClient::eventsFromJson(const QJsonArray& json)
{
- QList<Event*> l;
- l.reserve(json.size());
+ Events evs;
+ evs.reserve(json.size());
for (auto event: json)
- l.push_back(Event::fromJson(event.toObject()));
- return l;
+ evs.push_back(Event::fromJson(event.toObject()));
+ return evs;
}