Codechange: replace stredup + StrMakeValidInPlace with std::string + StrMakeValid

This commit is contained in:
Rubidium
2023-06-08 17:15:32 +02:00
committed by rubidium42
parent e762855201
commit 3f35787458
3 changed files with 6 additions and 9 deletions

View File

@@ -462,7 +462,7 @@ static void IConsoleHistoryNavigate(int direction)
* @param colour_code the colour of the command. Red in case of errors, etc.
* @param str the message entered or output on the console (notice, error, etc.)
*/
void IConsoleGUIPrint(TextColour colour_code, char *str)
void IConsoleGUIPrint(TextColour colour_code, const std::string &str)
{
_iconsole_buffer.push_front(IConsoleLine(str, colour_code));
SetWindowDirty(WC_CONSOLE, 0);