X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..cdbd62d6ff290fd58acd1bc5574dfc79db3a6f70:/src/osx/carbon/tooltip.cpp diff --git a/src/osx/carbon/tooltip.cpp b/src/osx/carbon/tooltip.cpp index 0b7630ac79..66f99826e0 100644 --- a/src/osx/carbon/tooltip.cpp +++ b/src/osx/carbon/tooltip.cpp @@ -2,7 +2,6 @@ // Name: src/osx/carbon/tooltip.cpp // Purpose: wxToolTip implementation // Author: Stefan Csomor -// Id: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -199,11 +198,7 @@ void wxMacToolTip::Setup( WindowRef win , const wxString& text , const wxPoint& wxMacToolTip::~wxMacToolTip() { #if wxUSE_TIMER - if ( m_timer ) - { - delete m_timer ; - m_timer = NULL; - } + wxDELETE(m_timer); #endif // wxUSE_TIMER if ( m_backpict ) Clear() ; @@ -251,11 +246,7 @@ void wxMacToolTip::Clear() { m_mark++ ; #if wxUSE_TIMER - if ( m_timer ) - { - delete m_timer ; - m_timer = NULL ; - } + wxDELETE(m_timer); #endif // wxUSE_TIMER if ( !m_shown ) return ;