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