1 | /*␊ |
2 | * BootPropertyList.cpp␊ |
3 | * ChameleonPrefPane␊ |
4 | *␊ |
5 | * Created by Rekursor on 1/22/10.␊ |
6 | *␊ |
7 | */␊ |
8 | ␊ |
9 | #include "BootPropertyList.h"␊ |
10 | ␊ |
11 | void BootPropertyList::deleteOptionDesc()␊ |
12 | {␊ |
13 | ␉// delete all alloc'ed pointers␊ |
14 | ␉std::map<void*, BootOptionDesc*>::iterator bod;␉␊ |
15 | ␉for (bod=_idToDescDict.begin(); bod!=_idToDescDict.end(); bod++)␊ |
16 | ␉␉if(bod->second) delete bod->second;␊ |
17 | ␉for (bod=_contentIdToDescDict.begin(); bod!=_contentIdToDescDict.end(); bod++)␊ |
18 | ␉␉if(bod->second) delete bod->second;␊ |
19 | }␊ |
20 | ␊ |
21 | void BootPropertyList::clearOptionDesc()␊ |
22 | {␊ |
23 | ␉deleteOptionDesc();␊ |
24 | ␉_idToDescDict.clear();␉// now clear the pairs␊ |
25 | ␉_contentIdToDescDict.clear();␉// now clear the pairs␊ |
26 | }␊ |
27 | ␊ |
28 | |