| 1512 | |
| 1513 | |
| 1514 | void TiXmlAttributeSet::Add( TiXmlAttribute* addMe ) |
| 1515 | { |
| 1516 | #ifdef TIXML_USE_STL |
| 1517 | assert( !Find( TIXML_STRING( addMe->Name() ) ) ); // Shouldn't be multiply adding to the set. |
| 1518 | #else |
| 1519 | assert( !Find( addMe->Name() ) ); // Shouldn't be multiply adding to the set. |
| 1520 | #endif |
| 1521 | |
| 1522 | addMe->next = &sentinel; |
| 1523 | addMe->prev = sentinel.prev; |
| 1524 | |
| 1525 | sentinel.prev->next = addMe; |
| 1526 | sentinel.prev = addMe; |
| 1527 | } |
| 1528 | |
| 1529 | void TiXmlAttributeSet::Remove( TiXmlAttribute* removeMe ) |
| 1530 | { |
no test coverage detected