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

@@ -311,7 +311,7 @@ void SurveyFont(nlohmann::json &survey)
void SurveyCompanies(nlohmann::json &survey)
{
for (const Company *c : Company::Iterate()) {
auto &company = survey[std::to_string(c->index.base())];
auto &company = survey[fmt::format("{}", c->index.base())];
if (c->ai_info == nullptr) {
company["type"] = "human";
} else {