wxDockTaskBarIcon* pTB = (wxDockTaskBarIcon*) pData;
const UInt32 eventClass = GetEventClass(inEvent);
const UInt32 eventKind = GetEventKind(inEvent);
-
+
OSStatus err = eventNotHandledErr;
// Handle wxTaskBar menu events (note that this is a global event handler
//-----------------------------------------------------------------------------
bool wxDockTaskBarIcon::RemoveIcon()
{
- if (m_pMenu)
- {
- delete m_pMenu;
- m_pMenu = NULL;
- }
+ wxDELETE(m_pMenu);
// restore old icon to the dock
OSStatus err = RestoreApplicationDockTileImage();
// actually seperate programs that also require a special undocumented id
// hack and other such fun stuff).
//-----------------------------------------------------------------------------
-wxTaskBarIcon::wxTaskBarIcon(wxTaskBarIconType nType)
+wxTaskBarIcon::wxTaskBarIcon(wxTaskBarIconType WXUNUSED_UNLESS_DEBUG(nType))
{
wxASSERT_MSG(
nType == DOCK,