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/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 0fc7900a4..ac6cd7953 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -281,7 +281,7 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current) throw CoreException("Connect class must have allow, deny, or name specified at " + tag->source.str()); if (name.empty()) - name = "unnamed-" + ConvToStr(i); + name = INSP_FORMAT("unnamed-{}", i); if (names.find(name) != names.end()) throw CoreException("Two connect classes with name \"" + name + "\" defined!"); -- cgit v1.3.1-10-gc9f91