X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..67193066b2d16ca36529216f70d093690d7e1123:/src/mac/classic/tooltip.cpp diff --git a/src/mac/classic/tooltip.cpp b/src/mac/classic/tooltip.cpp index 9c7c664c2a..4e66d906cb 100644 --- a/src/mac/classic/tooltip.cpp +++ b/src/mac/classic/tooltip.cpp @@ -15,11 +15,15 @@ #if wxUSE_TOOLTIPS -#include "wx/app.h" -#include "wx/dc.h" -#include "wx/window.h" #include "wx/tooltip.h" -#include "wx/timer.h" + +#ifndef WX_PRECOMP + #include "wx/app.h" + #include "wx/window.h" + #include "wx/dc.h" + #include "wx/timer.h" +#endif + #include "wx/geometry.h" #include "wx/mac/uma.h" @@ -217,7 +221,7 @@ const short kTipOffset = 5 ; void wxMacToolTip::Draw() { - if ( m_label.Length() == 0 ) + if ( m_label.empty() ) return ; if ( m_window == s_ToolTipWindowRef ) @@ -258,7 +262,7 @@ void wxMacToolTip::Draw() short height = 0 ; int i = 0 ; - int length = m_label.Length() ; + int length = m_label.length() ; int width = 0 ; int thiswidth = 0 ; int laststop = 0 ; @@ -404,4 +408,4 @@ void wxMacToolTip::Clear() #endif } -#endif +#endif // wxUSE_TOOLTIPS