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 authored and tellowkrinkle committed 2021-11-13 18:44:26 -06:00
1 parent 162a0bbe46
commit cbcd9b5004
26 files changed
+100 -55

No files matched your search

+5
View File
@@ -31,6 +31,11 @@ __fi wxString fromUTF8(const char* src)
return wxString(src, wxMBConvUTF8());
}
__fi wxString fromUTF8(const std::string& str)
{
return wxString(str.data(), wxMBConvUTF8(), str.size());
}
__fi wxString fromAscii(const char* src)
{
return wxString::FromAscii(src);