MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / RemoveChild

Method RemoveChild

lesson7-Detection/src/utils/tinyxml.cpp:335–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333
334
335bool TiXmlNode::RemoveChild( TiXmlNode* removeThis )
336{
337 if ( !removeThis ) {
338 return false;
339 }
340
341 if ( removeThis->parent != this )
342 {
343 assert( 0 );
344 return false;
345 }
346
347 if ( removeThis->next )
348 removeThis->next->prev = removeThis->prev;
349 else
350 lastChild = removeThis->prev;
351
352 if ( removeThis->prev )
353 removeThis->prev->next = removeThis->next;
354 else
355 firstChild = removeThis->next;
356
357 delete removeThis;
358 return true;
359}
360
361const TiXmlNode* TiXmlNode::FirstChild( const char * _value ) const
362{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected