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