From: Vadim Zeitlin Date: Thu, 22 Dec 2005 00:17:22 +0000 (+0000) Subject: Unicode compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/53599fbbd8be79bb1e7d806cbb53b5d9b7ca4302?ds=inline Unicode compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/strings/tokenizer.cpp b/tests/strings/tokenizer.cpp index 8394d5a761..14fd24f8fd 100644 --- a/tests/strings/tokenizer.cpp +++ b/tests/strings/tokenizer.cpp @@ -176,7 +176,12 @@ void TokenizerTestCase::StrtokCompat() if ( ttd.mode != wxTOKEN_STRTOK ) continue; - wxCharBuffer buf(ttd.str); +#if wxUSE_UNICODE + wxWCharBuffer +#else + wxCharBuffer +#endif + buf(ttd.str); wxChar *last; wxChar *s = wxStrtok(buf.data(), ttd.delims, &last);