Codechange: add std::string accepting SetDParamStr to ErrorMessageData

This commit is contained in:
rubidium42
2021-05-30 11:40:54 +02:00
committed by rubidium42
parent ca9c50607e
commit e588923bff
5 changed files with 16 additions and 5 deletions

View File

@@ -164,6 +164,16 @@ void ErrorMessageData::SetDParamStr(uint n, const char *str)
this->strings[n] = stredup(str);
}
/**
* Set a rawstring parameter.
* @param n Parameter index
* @param str Raw string
*/
void ErrorMessageData::SetDParamStr(uint n, const std::string &str)
{
this->SetDParamStr(n, str.c_str());
}
/** Define a queue with errors. */
typedef std::list<ErrorMessageData> ErrorList;
/** The actual queue with errors. */