X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3b9f782ef3949f583e8ac53795d36787f044fc3..47e175a24f862aa8b7ca7dd4a2bb5957991e7f2d:/src/osx/carbon/tooltip.cpp diff --git a/src/osx/carbon/tooltip.cpp b/src/osx/carbon/tooltip.cpp index 92054cbaee..0e642ec612 100644 --- a/src/osx/carbon/tooltip.cpp +++ b/src/osx/carbon/tooltip.cpp @@ -159,7 +159,7 @@ void wxToolTip::RemoveToolTips() } // --- mac specific -#if wxUSE_TIMER +#if wxUSE_TIMER wxMacToolTipTimer::wxMacToolTipTimer( wxMacToolTip *tip , int msec ) { m_tip = tip; @@ -172,7 +172,7 @@ wxMacToolTip::wxMacToolTip() { m_window = NULL ; m_backpict = NULL ; -#if wxUSE_TIMER +#if wxUSE_TIMER m_timer = NULL ; #endif m_mark = 0 ; @@ -189,7 +189,7 @@ void wxMacToolTip::Setup( WindowRef win , const wxString& text , const wxPoint& m_window =win; s_ToolTipWindowRef = m_window ; m_backpict = NULL ; -#if wxUSE_TIMER +#if wxUSE_TIMER delete m_timer ; m_timer = new wxMacToolTipTimer( this , s_ToolTipDelay ) ; @@ -198,12 +198,8 @@ void wxMacToolTip::Setup( WindowRef win , const wxString& text , const wxPoint& wxMacToolTip::~wxMacToolTip() { -#if wxUSE_TIMER - if ( m_timer ) - { - delete m_timer ; - m_timer = NULL; - } +#if wxUSE_TIMER + wxDELETE(m_timer); #endif // wxUSE_TIMER if ( m_backpict ) Clear() ; @@ -250,12 +246,8 @@ void wxToolTip::NotifyWindowDelete( WXHWND win ) void wxMacToolTip::Clear() { m_mark++ ; -#if wxUSE_TIMER - if ( m_timer ) - { - delete m_timer ; - m_timer = NULL ; - } +#if wxUSE_TIMER + wxDELETE(m_timer); #endif // wxUSE_TIMER if ( !m_shown ) return ;