refactor: Fix redundant conversion to std::string and then to std::string_view [performance-string-view-conversions]

This commit is contained in:
MarcoFalke
2026-03-24 07:05:09 +01:00
parent fa270fdacf
commit fa73ed467c

View File

@@ -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);
}