| 1530 | |
| 1531 | |
| 1532 | void TiXmlAttributeSet::Add( TiXmlAttribute* addMe ) |
| 1533 | { |
| 1534 | #ifdef TIXML_USE_STL |
| 1535 | assert( !Find( TIXML_STRING( addMe->Name() ) ) ); // Shouldn't be multiply adding to the set. |
| 1536 | #else |
| 1537 | assert( !Find( addMe->Name() ) ); // Shouldn't be multiply adding to the set. |
| 1538 | #endif |
| 1539 | |
| 1540 | addMe->next = &sentinel; |
| 1541 | addMe->prev = sentinel.prev; |
| 1542 | |
| 1543 | sentinel.prev->next = addMe; |
| 1544 | sentinel.prev = addMe; |
| 1545 | } |
| 1546 | |
| 1547 | void TiXmlAttributeSet::Remove( TiXmlAttribute* removeMe ) |
| 1548 | { |