Unicode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -176,7 +176,12 @@ void TokenizerTestCase::StrtokCompat()
|
|||||||
if ( ttd.mode != wxTOKEN_STRTOK )
|
if ( ttd.mode != wxTOKEN_STRTOK )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
wxCharBuffer buf(ttd.str);
|
#if wxUSE_UNICODE
|
||||||
|
wxWCharBuffer
|
||||||
|
#else
|
||||||
|
wxCharBuffer
|
||||||
|
#endif
|
||||||
|
buf(ttd.str);
|
||||||
wxChar *last;
|
wxChar *last;
|
||||||
wxChar *s = wxStrtok(buf.data(), ttd.delims, &last);
|
wxChar *s = wxStrtok(buf.data(), ttd.delims, &last);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user