diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-30 11:40:54 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-13 10:26:58 +0200 |
commit | e588923bff12e0c46aaab72fdca3e8b5cb211081 (patch) | |
tree | 0388d8f8f4f4e4564d2b44e0300032c1327037ce /src/error_gui.cpp | |
parent | ca9c50607eeca1657f7da4a06fe4486574e97139 (diff) | |
download | openttd-e588923bff12e0c46aaab72fdca3e8b5cb211081.tar.xz |
Codechange: add std::string accepting SetDParamStr to ErrorMessageData
Diffstat (limited to 'src/error_gui.cpp')
-rw-r--r-- | src/error_gui.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/error_gui.cpp b/src/error_gui.cpp index 70b403a68..06c0c44e0 100644 --- a/src/error_gui.cpp +++ b/src/error_gui.cpp @@ -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. */ |