mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 19:31:23 +00:00
minor cleanup to the parsing loop
This commit is contained in:
parent
8713775d9b
commit
9708885e5e
@ -1169,12 +1169,11 @@ char* XMLElement::ParseAttributes( char* p )
|
|||||||
// now, may reconsider in the future.
|
// now, may reconsider in the future.
|
||||||
if ( prevAttribute ) {
|
if ( prevAttribute ) {
|
||||||
prevAttribute->next = attrib;
|
prevAttribute->next = attrib;
|
||||||
prevAttribute = attrib;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rootAttribute = attrib;
|
rootAttribute = attrib;
|
||||||
prevAttribute = rootAttribute;
|
|
||||||
}
|
}
|
||||||
|
prevAttribute = attrib;
|
||||||
}
|
}
|
||||||
// end of the tag
|
// end of the tag
|
||||||
else if ( *p == '/' && *(p+1) == '>' ) {
|
else if ( *p == '/' && *(p+1) == '>' ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user