summaryrefslogtreecommitdiff
path: root/src/channel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.cpp')
-rw-r--r--src/channel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channel.cpp b/src/channel.cpp
index b13a71e..787fb08 100644
--- a/src/channel.cpp
+++ b/src/channel.cpp
@@ -14,7 +14,7 @@ Ref ChannelRequestData::store(const Storage & st) const
{
vector<Record::Item> items;
- for (const auto p : peers)
+ for (const auto & p : peers)
items.emplace_back("peer", p);
items.emplace_back("enc", "aes-128-gcm");
items.emplace_back("key", key);
@@ -94,7 +94,7 @@ Ref Channel::store(const Storage & st) const
{
vector<Record::Item> items;
- for (const auto p : peers)
+ for (const auto & p : peers)
items.emplace_back("peer", p);
items.emplace_back("enc", "aes-128-gcm");
items.emplace_back("key", key);