wx: Remove wxString implicit constructor from std::string

On windows, it uses the current system's character encoding instead of utf-8, which breaks a lot of things.  We should avoid it.
This commit is contained in:
TellowKrinkle
2021-11-13 18:44:26 -06:00
committed by tellowkrinkle
parent 162a0bbe46
commit cbcd9b5004
26 changed files with 100 additions and 55 deletions
+22
View File
@@ -470,6 +470,28 @@ bool IConsoleWriter::Warning(const wxString fmt, ...) const
return false;
}
bool IConsoleWriter::WriteLn(ConsoleColors color, const std::string& str) const
{
ConsoleColorScope cs(color);
return WriteLn(str);
}
bool IConsoleWriter::WriteLn(const std::string& str) const
{
DoWriteLn(_addIndentation(fromUTF8(str), conlog_Indent));
return false;
}
bool IConsoleWriter::Error(const std::string& str) const
{
return WriteLn(Color_StrongRed, str);
}
bool IConsoleWriter::Warning(const std::string& str) const
{
return WriteLn(Color_StrongOrange, str);
}
// --------------------------------------------------------------------------------------
// ConsoleColorScope / ConsoleIndentScope