Strgen: Fix compiler warning in LangString constructor

This commit is contained in:
Jonathan G Rennison
2023-09-04 00:04:54 +01:00
parent 597382e989
commit 3856891467
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ struct LangString {
bool no_translate_mode = false; bool no_translate_mode = false;
LangString *default_translation = nullptr; LangString *default_translation = nullptr;
LangString(std::string name, std::string english, size_t index, int line); LangString(std::string name, std::string english, int index, int line);
void ReplaceDefinition(std::string english, int line); void ReplaceDefinition(std::string english, int line);
void FreeTranslation(); void FreeTranslation();
}; };

View File

@@ -50,7 +50,7 @@ Case::Case(int caseidx, std::string string) :
* @param index The index in the string table. * @param index The index in the string table.
* @param line The line this string was found on. * @param line The line this string was found on.
*/ */
LangString::LangString(std::string name, std::string english, size_t index, int line) : LangString::LangString(std::string name, std::string english, int index, int line) :
name(std::move(name)), english(std::move(english)), index(index), line(line) name(std::move(name)), english(std::move(english)), index(index), line(line)
{ {
} }