From 32a127d2e0c0a624d12cf9570905fec264554550 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 1 Mar 2025 16:06:32 +0000 Subject: Avoid the use of ConvToStr in string concatenation. This function calls INSP_FORMAT in most cases nowadays so we may as well just call that manually. --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index f8564b9d1..8419e1d6f 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -120,7 +120,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) // Check if the port is out of range. if (port <= std::numeric_limits::min() || port > std::numeric_limits::max()) { - failed_ports.emplace_back("Port is not valid: " + ConvToStr(port), bindspec, tag); + failed_ports.emplace_back(INSP_FORMAT("Port is not valid: {}", port), bindspec, tag); continue; } -- cgit v1.3.1-10-gc9f91