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 | }␊ |
18 | ␊ |
19 | void BootPropertyList::clearOptionDesc()␊ |
20 | {␊ |
21 | ␉deleteOptionDesc();␊ |
22 | ␉_idToDescDict.clear();␉// now clear the pairs␊ |
23 | }␊ |
24 | ␊ |
25 | |