diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-08-22 16:17:38 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-08-22 16:22:56 +0900 |
commit | fb6df81fa9f224c94118fd79fea91ae15559c7e3 (patch) | |
tree | c5409c28a1baf1d78dd32358e8fa045dfdb69d28 /events/receiptevent.h | |
parent | c2e38f28987b4fa273765b4234c6a57bdf75e446 (diff) | |
download | libquotient-fb6df81fa9f224c94118fd79fea91ae15559c7e3.tar.gz libquotient-fb6df81fa9f224c94118fd79fea91ae15559c7e3.zip |
Replaced QList<> with QVector<> where appropriate + minor code cleanup
See https://marcmutz.wordpress.com/effective-qt/containers/ for the background and http://lists.qt-project.org/pipermail/development/2015-July/022283.html for the relevant flamewar in Qt dev mailing list.
Diffstat (limited to 'events/receiptevent.h')
-rw-r--r-- | events/receiptevent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/events/receiptevent.h b/events/receiptevent.h index aa72ba90..028bf0f6 100644 --- a/events/receiptevent.h +++ b/events/receiptevent.h @@ -31,9 +31,8 @@ namespace QMatrixClient QString eventId; QString userId; QDateTime timestamp; - - Receipt(QString event, QString user, QDateTime time); }; + using Receipts = QVector<Receipt>; class ReceiptEvent: public Event { @@ -41,7 +40,7 @@ namespace QMatrixClient ReceiptEvent(); virtual ~ReceiptEvent(); - QList<Receipt> receiptsForEvent(QString eventId) const; + Receipts receiptsForEvent(QString eventId) const; QStringList events() const; @@ -52,5 +51,6 @@ namespace QMatrixClient Private* d; }; } +Q_DECLARE_TYPEINFO(QMatrixClient::Receipt, Q_MOVABLE_TYPE); #endif // QMATRIXCLIENT_RECEIPTEVENT_H |