From f13d956e6a1acc9f22b802e8ad614bf08e47a3d1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 5 Oct 2010 06:33:34 +0000 Subject: [PATCH] Removed test code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xml/xml.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 7e4fdd5a99..3767c9dc30 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -798,14 +798,7 @@ bool OutputString(wxOutputStream& stream, wxUnusedVar(convMem); if ( !convFile ) convFile = &wxConvUTF8; -#if 1 - // JACS test - const wxWX2MBbuf buf(str.mb_str(*convFile)); - if (!buf.length()) - return false; - - stream.Write((const char*)buf, strlen((const char*)buf)); -#else + const wxScopedCharBuffer buf(str.mb_str(*convFile)); if ( !buf.length() ) { @@ -815,8 +808,6 @@ bool OutputString(wxOutputStream& stream, } stream.Write(buf, buf.length()); -#endif - #else // !wxUSE_UNICODE if ( convFile && convMem ) { -- 2.50.0