diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-09 02:00:18 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:59:25 +0200 |
| commit | 199f9e9026861d1a104f2b24371ddbb94f0e8169 (patch) | |
| tree | 5757bca98c790e5b385d4bdb9b6d09d783571945 /src/wx/wx_util.cc | |
| parent | 37fa3bccbed52516b584c92f461d0050f3486158 (diff) | |
Add new char_to_wx() to convert UTF8 character arrays to wxString.
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 1c04a4755..f3d75a462 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -214,6 +214,13 @@ std_to_wx (string s) } +wxString +char_to_wx(char const* s) +{ + return wxString::FromUTF8(s); +} + + string string_client_data (wxClientData* o) { |
