X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2680ced12cbbed16990007c5fa3ea7730700122..bb69632a56a827bed4cfae842bfffa88259ac1aa:/src/osx/carbon/tooltip.cpp?ds=sidebyside diff --git a/src/osx/carbon/tooltip.cpp b/src/osx/carbon/tooltip.cpp index 60fc903593..f7b4857e9e 100644 --- a/src/osx/carbon/tooltip.cpp +++ b/src/osx/carbon/tooltip.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/tooltip.cpp +// Name: src/osx/carbon/tooltip.cpp // Purpose: wxToolTip implementation // Author: Stefan Csomor // Id: $Id$ @@ -18,6 +18,7 @@ #include "wx/window.h" #include "wx/dc.h" #include "wx/timer.h" + #include "wx/nonownedwnd.h" #endif // WX_PRECOMP #include "wx/geometry.h" @@ -189,8 +190,7 @@ void wxMacToolTip::Setup( WindowRef win , const wxString& text , const wxPoint& s_ToolTipWindowRef = m_window ; m_backpict = NULL ; #if wxUSE_TIMER - if ( m_timer ) - delete m_timer ; + delete m_timer ; m_timer = new wxMacToolTipTimer( this , s_ToolTipDelay ) ; #endif // wxUSE_TIMER