work around 8 bit wxString B.S.

This commit is contained in:
Dick Hollenbeck
2011-02-02 13:41:35 -06:00
parent 6a26a7f9bf
commit 1ae44d090a
6 changed files with 26 additions and 19 deletions
+4 -4
View File
@@ -34,7 +34,7 @@ void XNODE::Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR )
switch( GetType() )
{
case wxXML_ELEMENT_NODE:
out->Print( nestLevel, "(%s", out->Quoted( GetName() ).c_str() );
out->Print( nestLevel, "(%s", out->Quotew( GetName() ).c_str() );
FormatContents( out, nestLevel );
if( GetNext() )
out->Print( 0, ")\n" );
@@ -55,8 +55,8 @@ void XNODE::FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERRO
{
out->Print( 0, " (%s %s)",
// attr names should never need quoting, no spaces, we designed the file.
out->Quoted( attr->GetName() ).c_str(),
out->Quoted( attr->GetValue() ).c_str()
out->Quotew( attr->GetName() ).c_str(),
out->Quotew( attr->GetValue() ).c_str()
);
}
@@ -82,7 +82,7 @@ void XNODE::FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERRO
break;
case wxXML_TEXT_NODE:
out->Print( 0, " %s", out->Quoted( GetContent() ).c_str() );
out->Print( 0, " %s", out->Quotew( GetContent() ).c_str() );
break;
default: