fix STL build (don't rely on implicit wxString to char* conversions)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -927,7 +927,7 @@ wxTextCtrl::StreamIn(const wxString& value,
|
||||
#else // !wxUSE_UNICODE_MSLU
|
||||
wxCSConv conv(encoding);
|
||||
|
||||
const size_t len = conv.MB2WC(NULL, value, value.length());
|
||||
const size_t len = conv.MB2WC(NULL, value.mb_str(), value.length());
|
||||
|
||||
#if wxUSE_WCHAR_T
|
||||
wxWCharBuffer wchBuf(len);
|
||||
@@ -937,7 +937,7 @@ wxTextCtrl::StreamIn(const wxString& value,
|
||||
wchar_t *wpc = wchBuf;
|
||||
#endif
|
||||
|
||||
conv.MB2WC(wpc, value, value.length());
|
||||
conv.MB2WC(wpc, value.mb_str(), value.length());
|
||||
#endif // wxUSE_UNICODE_MSLU
|
||||
|
||||
// finally, stream it in the control
|
||||
|
Reference in New Issue
Block a user