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
  1. Diapolo commented at 1:06 PM on April 23, 2015: none

    No description provided.

  2. 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 to const string& strDest?

  3. 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!

  4. 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 bool instead of bool static, having static first that seems to be a more common order in our source

  5. jgarzik commented at 1:03 PM on April 24, 2015: contributor

    ACK once @laanwj 's nit is sorted.

  6. laanwj added the label Improvement on Apr 24, 2015
  7. use const reference as param in ConnectThroughProxy/Socks5
    - also ensure code style conformance by replacing bool static with static bool
    d1af89e655
  8. Diapolo commented at 12:46 PM on April 28, 2015: none

    Updated to include @laanwj's nit.

  9. sipa commented at 1:57 PM on April 28, 2015: member

    ACK

  10. sipa merged this on Apr 28, 2015
  11. sipa closed this on Apr 28, 2015

  12. sipa referenced this in commit 9e06be2802 on Apr 28, 2015
  13. Diapolo deleted the branch on May 19, 2015
  14. MarcoFalke locked this on Sep 8, 2021

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 site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me