Chameleon Applications

Chameleon Applications Svn Source Tree

Root/trunk/ChameleonPrefPane/Sources/ChameleonPropertyList.cpp

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

Archive Download this file

Revision: 378