MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / RemoveChild

Method RemoveChild

cpp/tinyxml/tinyxml.cpp:320–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319
320bool TiXmlNode::RemoveChild( TiXmlNode* removeThis )
321{
322 if ( removeThis->parent != this )
323 {
324 assert( 0 );
325 return false;
326 }
327
328 if ( removeThis->next )
329 removeThis->next->prev = removeThis->prev;
330 else
331 lastChild = removeThis->prev;
332
333 if ( removeThis->prev )
334 removeThis->prev->next = removeThis->next;
335 else
336 firstChild = removeThis->next;
337
338 delete removeThis;
339 return true;
340}
341
342const TiXmlNode* TiXmlNode::FirstChild( const char * _value ) const
343{

Callers 1

ReloadNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected