Chameleon Applications

Chameleon Applications Svn Source Tree

Root/trunk/ChameleonPrefPane/Sources/BootPropertyList.cpp

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

Archive Download this file

Revision: 49