Palette::~Palette() {
Release();
- delete [] entries;
- entries = 0;
+ wxDELETEA(entries);
}
void Palette::Release() {
dc.DrawRoundedRectangle(wxRectFromPRectangle(rc), cornerSize);
return;
#else
-
+
#ifdef wxHAS_RAW_BITMAP
// TODO: do something with cornerSize
}
ListBoxImpl::~ListBoxImpl() {
- if (imgList) {
- delete imgList;
- imgList = NULL;
- }
- if (imgTypeMap) {
- delete imgTypeMap;
- imgTypeMap = NULL;
- }
+ wxDELETE(imgList);
+ wxDELETE(imgTypeMap);
}
}
void ListBoxImpl::ClearRegisteredImages() {
- if (imgList) {
- delete imgList;
- imgList = NULL;
- }
- if (imgTypeMap) {
- delete imgTypeMap;
- imgTypeMap = NULL;
- }
+ wxDELETE(imgList);
+ wxDELETE(imgTypeMap);
if (wid)
GETLB(wid)->SetImageList(NULL, wxIMAGE_LIST_SMALL);
}