wxTaskBarIcon *m_parent;
class wxTaskBarIconWindow *m_menuEventWindow;
- DECLARE_NO_COPY_CLASS(wxTaskBarIconImpl)
+ wxDECLARE_NO_COPY_CLASS(wxTaskBarIconImpl);
};
//-----------------------------------------------------------------------------
if (theNewMenu)
{
- if (m_pMenu)
- delete m_pMenu;
+ delete m_pMenu;
m_pMenu = theNewMenu;
m_pMenu->SetInvokingWindow(m_menuEventWindow);
}
{
wxASSERT(menu != NULL);
- if (m_pMenu)
- delete m_pMenu;
+ delete m_pMenu;
// start copy of menu
m_pMenu = wxDeepCopyMenu(menu);