From 00a3b28c8e561c35ad33499819d5aaced49b50da Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 25 Dec 2017 08:37:07 +0900 Subject: Code cleanup --- events/event.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/events/event.h b/events/event.h index 71f2f4b2..d4923f1f 100644 --- a/events/event.h +++ b/events/event.h @@ -115,9 +115,6 @@ namespace QMatrixClient * * This is a simple wrapper over a generic vector type that adds * a convenience method to deserialise events from QJsonArray. - * Note that this type does not own pointers to events. If owning - * semantics is needed, one should use the Owning<> wrapper around - * the container (e.g. \code Owning> \endcode). * \tparam EventT base type of all events in the vector */ template @@ -140,7 +137,7 @@ namespace QMatrixClient void fromJson(const QJsonObject& container, const QString& node) { const auto objs = container.value(node).toArray(); - using size_type = typename std::vector::size_type; + using size_type = typename std::vector>::size_type; // The below line accommodates the difference in size types of // STL and Qt containers. this->reserve(static_cast(objs.size())); -- cgit v1.2.3