1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 09:22:42 +01:00

Codechange: Add format_append as short-hand to format_to + back_inserter.

This commit is contained in:
frosch
2025-04-29 12:37:34 +02:00
committed by frosch
parent 98481ecc01
commit fda93b6f35
12 changed files with 32 additions and 27 deletions

View File

@@ -203,7 +203,7 @@ std::string GetDebugString()
std::string result;
for (const auto &debug_level : _debug_levels) {
if (!result.empty()) result += ", ";
fmt::format_to(std::back_inserter(result), "{}={}", debug_level.name, *debug_level.level);
format_append(result, "{}={}", debug_level.name, *debug_level.level);
}
return result;
}