libi2pd: use std::move and pass by value

Found with clang-tidy's modernize-pass-by-value

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-01-19 19:07:10 -08:00
parent 6cc388c1bc
commit 4b2badf97c
No known key found for this signature in database
GPG key ID: 36D31CFA845F0E3B
6 changed files with 15 additions and 8 deletions

View file

@ -1,4 +1,5 @@
#include <string.h>
#include <utility>
#include <vector>
#include "Crypto.h"
#include "Log.h"
@ -12,7 +13,7 @@ namespace i2p
namespace datagram
{
DatagramDestination::DatagramDestination (std::shared_ptr<i2p::client::ClientDestination> owner):
m_Owner (owner), m_Receiver (nullptr), m_RawReceiver (nullptr)
m_Owner (std::move(owner)), m_Receiver (nullptr), m_RawReceiver (nullptr)
{
}