diff options
| author | Philip Kaufmann <[email protected]> | 2015-05-31 15:36:44 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2015-06-04 19:34:18 +0200 |
| commit | a9ac95c1bc67726a7d6eecb35d7650eed6c89361 (patch) | |
| tree | ba9b43d9b01e925d2050d7084a11aec927a2d564 /src/net.h | |
| parent | Merge pull request #6121 (diff) | |
| download | discoin-a9ac95c1bc67726a7d6eecb35d7650eed6c89361.tar.xz discoin-a9ac95c1bc67726a7d6eecb35d7650eed6c89361.zip | |
use const references where appropriate
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: |