From f839ba950219d02bcd2951ff004bc8c78b96cc71 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Wed, 11 Aug 2010 20:56:25 -0500 Subject: [PATCH] Use wxXmlNode::GetProperties() and not GetAttributes() since the former is more widely available in older wxXml libs --- common/xnode.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/xnode.cpp b/common/xnode.cpp index b24ee1bf53..594e1f07e4 100644 --- a/common/xnode.cpp +++ b/common/xnode.cpp @@ -26,8 +26,8 @@ #include "xnode.h" #include "macros.h" - -typedef wxXmlProperty XATTR; +typedef wxXmlProperty XATTR; +#define GetAttribs GetProperties void XNODE::Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError ) { @@ -53,7 +53,7 @@ void XNODE::FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError std::string utf8; // output attributes first if they exist - for( XATTR* attr = (XATTR*) GetAttributes(); attr; attr = (XATTR*) attr->GetNext() ) + for( XATTR* attr = (XATTR*) GetAttribs(); attr; attr = (XATTR*) attr->GetNext() ) { utf8 = CONV_TO_UTF8( attr->GetValue() ); // capture the content @@ -94,5 +94,4 @@ void XNODE::FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError } } - // EOF