]> git.saurik.com Git - wxWidgets.git/commitdiff
Unicode compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Dec 2005 00:17:22 +0000 (00:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Dec 2005 00:17:22 +0000 (00:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/tokenizer.cpp

index 8394d5a7619a27df11513cce572e095aa80fb802..14fd24f8fd798deab30e37cc5586ca9658a2cf66 100644 (file)
@@ -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);