1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 19:54:06 +01:00

Codechange: Use format instead of to_string.

This commit is contained in:
frosch
2025-04-29 12:41:06 +02:00
committed by frosch
parent fda93b6f35
commit afe3dfb3a4
12 changed files with 38 additions and 40 deletions

View File

@@ -323,7 +323,7 @@ void ClientNetworkContentSocketHandler::DownloadSelectedContentHTTP(const Conten
{
std::string content_request;
for (const ContentID &id : content) {
content_request += std::to_string(id) + "\n";
format_append(content_request, "{}\n", id);
}
this->http_response_index = -1;