diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-03 18:03:55 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-03 18:03:55 +0900 |
commit | d9f09be82b716c5261a36feb6006c4978d989d9e (patch) | |
tree | 8ba196c8359051be065f8d0a4f1acda6f22e405d /lib/events | |
parent | eef87062763a22ff14f829808435d9acc0a411e4 (diff) | |
download | libquotient-d9f09be82b716c5261a36feb6006c4978d989d9e.tar.gz libquotient-d9f09be82b716c5261a36feb6006c4978d989d9e.zip |
More fixes from static analysis
Diffstat (limited to 'lib/events')
-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())); } }; |