Codechange: use std::string for LangString over C-style strings

This commit is contained in:
Rubidium
2023-04-30 10:22:14 +02:00
committed by rubidium42
parent f372373e6f
commit 234a143ee5
4 changed files with 31 additions and 43 deletions

View File

@@ -236,7 +236,7 @@ struct HeaderFileWriter : HeaderWriter, FileWriter {
this->output_stream << "#define TABLE_STRINGS_H\n";
}
void WriteStringID(const char *name, int stringid)
void WriteStringID(const std::string &name, int stringid)
{
if (prev + 1 != stringid) this->output_stream << "\n";
fmt::print(this->output_stream, "static const StringID {} = 0x{:X};\n", name, stringid);