| 1424 | } |
| 1425 | |
| 1426 | void TiXmlAttributeSet::Add(TiXmlAttribute* addMe) |
| 1427 | { |
| 1428 | #ifdef TIXML_USE_STL |
| 1429 | assert(!Find(TIXML_STRING(addMe->Name()))); // Shouldn't be multiply adding to the set. |
| 1430 | #else |
| 1431 | assert(!Find(addMe->Name())); // Shouldn't be multiply adding to the set. |
| 1432 | #endif |
| 1433 | |
| 1434 | addMe->next = &sentinel; |
| 1435 | addMe->prev = sentinel.prev; |
| 1436 | |
| 1437 | sentinel.prev->next = addMe; |
| 1438 | sentinel.prev = addMe; |
| 1439 | } |
| 1440 | |
| 1441 | void TiXmlAttributeSet::Remove(TiXmlAttribute* removeMe) |
| 1442 | { |
no test coverage detected