mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 21:57:54 +02:00
refactor: Fix redundant conversion to std::string and then to std::string_view [performance-string-view-conversions]
This commit is contained in:
@@ -494,7 +494,7 @@ CNode* CConnman::ConnectNode(CAddress addrConnect,
|
||||
if (const auto name_proxy = GetNameProxy()) {
|
||||
std::string host;
|
||||
uint16_t port{default_port};
|
||||
SplitHostPort(std::string(pszDest), port, host);
|
||||
SplitHostPort(pszDest, port, host);
|
||||
bool proxyConnectionFailed;
|
||||
sock = ConnectThroughProxy(*name_proxy, host, port, proxyConnectionFailed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user