summaryrefslogtreecommitdiff
path: root/src/message.cpp
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2021-02-06 21:40:07 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2021-02-06 21:40:07 +0100
commitc2892f82e1d4d5ed046f4ee9cf1955bb97f27021 (patch)
tree112c036a46a2180e6ef29a425f81fe07aa394e5c /src/message.cpp
parentd4dc316b05257fb0dd05e8589471e5b968e8663b (diff)
Avoid unnecessary copying in range loops
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.cpp b/src/message.cpp
index f8e0d96..eb1212c 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -73,7 +73,7 @@ Ref DirectMessageData::store(const Storage & st) const
{
vector<Record::Item> items;
- for (const auto prev : prev)
+ for (const auto & prev : prev)
items.emplace_back("PREV", prev.ref());
if (from)
items.emplace_back("from", from->ref().value());