1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 05:29:11 +00:00

Codechange: minor bits and pieces related to fmt::format() (#11806)

- Don't make run-time formatting what can be done compile-time.
- Be explicit about run-time formatting.
- Fix datetime printing.
This commit is contained in:
Patric Stout
2024-01-16 22:10:34 +01:00
committed by GitHub
parent 0b7410d979
commit 6550682b49
4 changed files with 8 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ void DumpDebugFacilityNames(std::back_insert_iterator<std::string> &output_itera
} else {
fmt::format_to(output_iterator, ", ");
}
fmt::format_to(output_iterator, i->name);
fmt::format_to(output_iterator, "{}", i->name);
written = true;
}
if (written) {