]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
Only do this Show on wxGTK as it is needed there but can cause display
[wxWidgets.git] / src / common / string.cpp
index f7fac212413320db2673da5c5fef2034fe5995c5..0eae6299c973bd7dae141f2e55919ca3363a942e 100644 (file)
@@ -1409,12 +1409,12 @@ const wxCharBuffer wxString::ToAscii() const
     wxCharBuffer buffer(length());
 
 
-    wxInt8 *dest = buffer.data();
+    char *dest = buffer.data();
 
     const wchar_t *pwc = c_str();
     for ( ;; )
     {
-        *dest++ = (wxInt8)(*pwc > SCHAR_MAX ? wxT('_') : *pwc);
+        *dest++ = (char)(*pwc > SCHAR_MAX ? wxT('_') : *pwc);
 
         // the output string can't have embedded NULs anyhow, so we can safely
         // stop at first of them even if we do have any