diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-07-24 16:29:41 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-07-24 17:28:47 +0200 |
commit | 0430c30af118637819f70eaf3d10a77d910639e3 (patch) | |
tree | 849d013dd4c8f3a079d27c8e1e0326c4b15a9f5b /src/net.cpp | |
parent | ab651b2d62778d6194ad996d29e7d447f549fc38 (diff) |
Add missing FindNode prototype to net.h
Also make the argument a const std::string & instead of pass-by-value.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index b55cd72e86..329e0278ca 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -456,7 +456,7 @@ CNode* FindNode(const CNetAddr& ip) return NULL; } -CNode* FindNode(std::string addrName) +CNode* FindNode(const std::string& addrName) { LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes) |