mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-23 15:45:36 +02:00
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:
parent
6cc388c1bc
commit
4b2badf97c
6 changed files with 15 additions and 8 deletions
libi2pd
|
@ -2,6 +2,7 @@
|
|||
#include "I2PEndian.h"
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include "Crypto.h"
|
||||
#include "RouterContext.h"
|
||||
#include "I2NPProtocol.h"
|
||||
|
@ -61,7 +62,7 @@ namespace garlic
|
|||
ElGamalAESSession::ElGamalAESSession (GarlicDestination * owner,
|
||||
std::shared_ptr<const i2p::data::RoutingDestination> destination, int numTags, bool attachLeaseSet):
|
||||
GarlicRoutingSession (owner, attachLeaseSet),
|
||||
m_Destination (destination), m_NumTags (numTags)
|
||||
m_Destination (std::move(destination)), m_NumTags (numTags)
|
||||
{
|
||||
// create new session tags and session key
|
||||
RAND_bytes (m_SessionKey, 32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue