No description provided.
use constant reference as param in ConnectThroughProxy() #6054
pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:netbase_const_ref changing 1 files +2 −2-
Diapolo commented at 1:06 PM on April 23, 2015: none
-
jonasschnelli commented at 1:11 PM on April 23, 2015: contributor
Why not also changing
bool static Socks5(string strDest, int port, const ProxyCredentials *auth, SOCKET& hSocket)'s first arg toconst string& strDest? -
Diapolo commented at 1:12 PM on April 23, 2015: none
Just forgot to add it here :) the change is already in my local branch... Edit: @jonasschnelli There it IS!
-
in src/netbase.cpp:None in cb06f10e5f outdated
292 | @@ -293,7 +293,7 @@ struct ProxyCredentials 293 | }; 294 | 295 | /** Connect using SOCKS5 (as described in RFC1928) */ 296 | -bool static Socks5(string strDest, int port, const ProxyCredentials *auth, SOCKET& hSocket) 297 | +bool static Socks5(const std::string& strDest, int port, const ProxyCredentials *auth, SOCKET& hSocket)
laanwj commented at 12:30 PM on April 24, 2015:if we're micro-managing this line anyway, maybe can change it to
static boolinstead ofbool static, having static first that seems to be a more common order in our sourcelaanwj added the label Improvement on Apr 24, 2015d1af89e655use const reference as param in ConnectThroughProxy/Socks5
- also ensure code style conformance by replacing bool static with static bool
sipa commented at 1:57 PM on April 28, 2015: memberACK
sipa merged this on Apr 28, 2015sipa closed this on Apr 28, 2015sipa referenced this in commit 9e06be2802 on Apr 28, 2015Diapolo deleted the branch on May 19, 2015MarcoFalke locked this on Sep 8, 2021ContributorsLabels
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me