minor cleanup to the parsing loop

This commit is contained in:
Lee Thomason 2012-04-18 11:39:42 -07:00
parent 8713775d9b
commit 9708885e5e
1 changed files with 1 additions and 2 deletions

View File

@ -1169,12 +1169,11 @@ char* XMLElement::ParseAttributes( char* p )
// now, may reconsider in the future.
if ( prevAttribute ) {
prevAttribute->next = attrib;
prevAttribute = attrib;
}
else {
rootAttribute = attrib;
prevAttribute = rootAttribute;
}
prevAttribute = attrib;
}
// end of the tag
else if ( *p == '/' && *(p+1) == '>' ) {