aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-25 08:37:07 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-25 08:37:07 +0900
commit00a3b28c8e561c35ad33499819d5aaced49b50da (patch)
treec63f103455e2a7647425c5ea87ef5c0c15c33094
parent00cc69489ce5153a39d91599acdda95a2c20b698 (diff)
downloadlibquotient-00a3b28c8e561c35ad33499819d5aaced49b50da.tar.gz
libquotient-00a3b28c8e561c35ad33499819d5aaced49b50da.zip
Code cleanup
-rw-r--r--events/event.h5
1 files changed, 1 insertions, 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<EventsBatch<Event>> \endcode).
* \tparam EventT base type of all events in the vector
*/
template <typename EventT>
@@ -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<EventT*>::size_type;
+ using size_type = typename std::vector<event_ptr_tt<EventT>>::size_type;
// The below line accommodates the difference in size types of
// STL and Qt containers.
this->reserve(static_cast<size_type>(objs.size()));