| 823 | } |
| 824 | |
| 825 | void 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 | |
| 842 | void SimXMLDocument::addData(const char* text) |
| 843 | { |
no test coverage detected