mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
copy elimination for ranges #part3
This commit is contained in:
parent
8b53ded53a
commit
a530503c0c
9 changed files with 45 additions and 49 deletions
|
@ -213,7 +213,7 @@ namespace tunnel
|
|||
void CreatePeers (const Peers& peers)
|
||||
{
|
||||
TunnelHopConfig * prev = nullptr;
|
||||
for (auto it: peers)
|
||||
for (const auto& it: peers)
|
||||
{
|
||||
auto hop = new TunnelHopConfig (it);
|
||||
if (prev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue