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

Archive Download this file

Revision: 47