Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/ErmaC/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
11BootProp* BootProp::_instance = NULL;
12
13void ChameleonPropertyList::deleteOptionDesc()
14{
15// delete all alloc'ed pointers
16std::map<void*, BootOptionDesc*>::iterator bod;
17for (bod=_idToDescDict.begin(); bod!=_idToDescDict.end(); bod++)
18if(bod->second) delete bod->second;
19for (bod=_contentIdToDescDict.begin(); bod!=_contentIdToDescDict.end(); bod++)
20if(bod->second) delete bod->second;
21}
22
23void ChameleonPropertyList::clearOptionDesc()
24{
25deleteOptionDesc();
26_idToDescDict.clear();// now clear the pairs
27_contentIdToDescDict.clear();// now clear the pairs
28}
29
30

Archive Download this file

Revision: 396