1
0
mirror of synced 2025-12-17 04:02:14 +03:00

Remove another unnecessary string copy (#2305)

This commit is contained in:
Aaron Gokaslan
2025-12-13 22:52:26 -05:00
committed by GitHub
parent 3401877d3d
commit ae94d64f67

View File

@@ -6880,7 +6880,7 @@ inline void hosted_at(const std::string &hostname,
auto dummy = -1;
if (detail::get_ip_and_port(addr, sizeof(struct sockaddr_storage), ip,
dummy)) {
addrs.push_back(ip);
addrs.emplace_back(std::move(ip));
}
}
}