Codechange: use std::string for LangString over C-style strings
This commit is contained in:
@@ -158,7 +158,7 @@ struct StringNameWriter : HeaderWriter {
|
||||
{
|
||||
}
|
||||
|
||||
void WriteStringID(const char *name, int stringid)
|
||||
void WriteStringID(const std::string &name, int stringid)
|
||||
{
|
||||
if (stringid == (int)this->strings.size()) this->strings.emplace_back(name);
|
||||
}
|
||||
@@ -271,7 +271,7 @@ static void ExtractStringParams(const StringData &data, StringParamsList ¶ms
|
||||
if (ls != nullptr) {
|
||||
StringParams ¶m = params.emplace_back();
|
||||
ParsedCommandStruct pcs;
|
||||
ExtractCommandString(&pcs, ls->english, false);
|
||||
ExtractCommandString(&pcs, ls->english.c_str(), false);
|
||||
|
||||
for (const CmdStruct *cs : pcs.cmd) {
|
||||
if (cs == nullptr) break;
|
||||
|
Reference in New Issue
Block a user