diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-05 07:00:57 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-05 07:11:44 +0200 |
commit | 3fce72eaa3ea75aa911e32c4d96313848338cede (patch) | |
tree | 8604bec497a9137315589e468ba8f79e1f7a0fd7 /src/net.h | |
parent | d38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3 (diff) | |
parent | a9ac95c1bc67726a7d6eecb35d7650eed6c89361 (diff) |
Merge pull request #6206
a9ac95c use const references where appropriate (Philip Kaufmann)
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ static const size_t MAPASKFOR_MAX_SZ = MAX_INV_SZ; unsigned int ReceiveFloodSize(); unsigned int SendBufferSize(); -void AddOneShot(std::string strDest); +void AddOneShot(const std::string& strDest); void AddressCurrentlyConnected(const CService& addr); CNode* FindNode(const CNetAddr& ip); CNode* FindNode(const std::string& addrName); @@ -321,7 +321,7 @@ public: // Whether a ping is requested. bool fPingQueued; - CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false); + CNode(SOCKET hSocketIn, const CAddress &addrIn, const std::string &addrNameIn = "", bool fInboundIn = false); ~CNode(); private: |