1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 00:42:45 +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

@@ -78,7 +78,7 @@ std::string FormatArrayAsHex(std::span<const uint8_t> data)
str.reserve(data.size() * 2 + 1);
for (auto b : data) {
fmt::format_to(std::back_inserter(str), "{:02X}", b);
format_append(str, "{:02X}", b);
}
return str;