From b1b23e3500ff80d62b54153341e66fdfef4534db Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 31 Aug 2016 18:30:42 +0900 Subject: QList -> using Events=QVector --- events/event.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'events/event.cpp') 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 QMatrixClient::eventListFromJson(const QJsonArray& json) +Events QMatrixClient::eventsFromJson(const QJsonArray& json) { - QList 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; } -- cgit v1.2.3