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