From 50b079e598c5a71cfb5609b3e1df1dab8b6e7954 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 25 Jan 2004 08:33:57 +0000 Subject: [PATCH] Cleaner fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wxchar.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 6d682be476..edbe661e75 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -599,13 +599,7 @@ int vfwprintf(FILE *stream, const wxChar *format, va_list argptr) if ( rc != -1 ) { // we can't do much better without Unicode support in libc... - if ( fprintf(stream, "%s", -#if wxUSE_UNICODE - s.mb_str().data() -#else - s.c_str() -#endif - ) == -1 ) + if ( fprintf(stream, "%s", (const char*)s.mb_str() ) == -1 ) return -1; } -- 2.49.0