aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2015-05-31 15:36:44 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2015-06-04 19:34:18 +0200
commita9ac95c1bc67726a7d6eecb35d7650eed6c89361 (patch)
treeba9b43d9b01e925d2050d7084a11aec927a2d564 /src/net.h
parent466f0ea0e66b88285c7797ab36ba777725324e83 (diff)
downloadbitcoin-a9ac95c1bc67726a7d6eecb35d7650eed6c89361.tar.xz
use const references where appropriate
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 17502b97eb..938f2376f7 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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: