mirror of https://github.com/AxioDL/tinyxml2.git
fix incorrect factoring
This commit is contained in:
parent
bc527554e8
commit
8a763619ac
|
@ -809,12 +809,12 @@ void XMLNode::Unlink( XMLNode* child )
|
||||||
|
|
||||||
if ( child->_prev ) {
|
if ( child->_prev ) {
|
||||||
child->_prev->_next = child->_next;
|
child->_prev->_next = child->_next;
|
||||||
child->_prev = 0;
|
|
||||||
}
|
}
|
||||||
if ( child->_next ) {
|
if ( child->_next ) {
|
||||||
child->_next->_prev = child->_prev;
|
child->_next->_prev = child->_prev;
|
||||||
child->_next = 0;
|
|
||||||
}
|
}
|
||||||
|
child->_next = 0;
|
||||||
|
child->_prev = 0;
|
||||||
child->_parent = 0;
|
child->_parent = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue