| 304 | |
| 305 | |
| 306 | void cParseNamedAttrList::Add(cParseNamedAttr* const pa) |
| 307 | { |
| 308 | ASSERT(pa != 0); |
| 309 | |
| 310 | pa->Validate(); |
| 311 | |
| 312 | // if not already in list, just put it in |
| 313 | constListIter iter = Find(pa); |
| 314 | if (iter == mList.end()) |
| 315 | { |
| 316 | mList.push_back(pa); |
| 317 | } |
| 318 | else // set value of pa already in list |
| 319 | { |
| 320 | (*iter)->SetValue(pa->GetValue()); |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | |
| 325 | cParseNamedAttrList::constListIter cParseNamedAttrList::Find(const cParseNamedAttr* const pa) |
no test coverage detected