Codechange: use std::string for parameters in the dbg_helpers

This commit is contained in:
Rubidium
2023-05-30 19:42:49 +02:00
committed by rubidium42
parent 2dffa7d0c6
commit 84037d4a57
3 changed files with 17 additions and 19 deletions

View File

@@ -108,9 +108,7 @@ public:
dmp.WriteValue("num_items", num_items);
for (uint i = 0; i < num_items; i++) {
const T &item = (*this)[i];
char name[32];
seprintf(name, lastof(name), "item[%d]", i);
dmp.WriteStructT(name, &item);
dmp.WriteStructT(fmt::format("item[{}]", i), &item);
}
}
};