aboutsummaryrefslogtreecommitdiff
path: root/events/event.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-08-31 18:30:42 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-08-31 18:30:42 +0900
commitb1b23e3500ff80d62b54153341e66fdfef4534db (patch)
treee512ce11ba2c5bad32e42a74a105fb4758fc0f73 /events/event.cpp
parent0fe83d59d76cd8f9c8f92d40cc58d9f5b082a84a (diff)
downloadlibquotient-b1b23e3500ff80d62b54153341e66fdfef4534db.tar.gz
libquotient-b1b23e3500ff80d62b54153341e66fdfef4534db.zip
QList<Event*> -> using Events=QVector<Event*>
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 1235780d..11ed1cc9 100644
--- a/events/event.cpp
+++ b/events/event.cpp
@@ -144,11 +144,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;
}