MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / removeText

Method removeText

engine/source/persistence/SimXMLDocument.cpp:825–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823}
824
825void SimXMLDocument::removeText()
826{
827 if(m_paNode.empty())
828 return;
829
830 const int iFinalElement = m_paNode.size() - 1;
831 TiXmlElement* pNode = m_paNode[iFinalElement];
832 if(!pNode)
833 return;
834
835 TiXmlText* text = pNode->FirstChild()->ToText();
836 if( !text )
837 return;
838
839 pNode->RemoveChild(text);
840}
841
842void SimXMLDocument::addData(const char* text)
843{

Callers 1

Calls 5

RemoveChildMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
ToTextMethod · 0.45
FirstChildMethod · 0.45

Tested by

no test coverage detected