diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/events/event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/event.h b/lib/events/event.h index eccfec41..d614115a 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -141,7 +141,7 @@ namespace QMatrixClient // The below line accommodates the difference in size types of // STL and Qt containers. this->reserve(static_cast<size_type>(objs.size())); - for (auto objValue: objs) + for (const auto& objValue: objs) this->emplace_back(makeEvent<EventT>(objValue.toObject())); } }; |