mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Use wxXmlNode::GetProperties() and not GetAttributes() since the former is more widely available in older wxXml libs
This commit is contained in:
parent
36575c0e1a
commit
f839ba9502
@ -26,8 +26,8 @@
|
|||||||
#include "xnode.h"
|
#include "xnode.h"
|
||||||
#include "macros.h"
|
#include "macros.h"
|
||||||
|
|
||||||
|
|
||||||
typedef wxXmlProperty XATTR;
|
typedef wxXmlProperty XATTR;
|
||||||
|
#define GetAttribs GetProperties
|
||||||
|
|
||||||
void XNODE::Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError )
|
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;
|
std::string utf8;
|
||||||
|
|
||||||
// output attributes first if they exist
|
// 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
|
utf8 = CONV_TO_UTF8( attr->GetValue() ); // capture the content
|
||||||
|
|
||||||
@ -94,5 +94,4 @@ void XNODE::FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// EOF
|
// EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user