No changes, just avoid unused variable in wxUSE_TOOLTIPS==0 build.

Move the declaration of a variable only used for tooltip setting inside "#if
wxUSE_TOOLTIPS" test.

Closes #14927.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-12-28 16:02:07 +00:00
parent 3b4b952d42
commit 5160f2929d

View File

@ -1233,10 +1233,9 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
}
}
wxWindow* wnd = NULL;
#if wxUSE_TOOLTIPS
if (evt.Moving() && TabHitTest(evt.m_x, evt.m_y, &wnd))
wxWindow* wnd = NULL;
if (evt.Moving() && TabHitTest(evt.m_x, evt.m_y, &wnd))
{
wxString tooltip(m_pages[GetIdxFromWindow(wnd)].tooltip);
@ -1247,8 +1246,8 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
}
else
UnsetToolTip();
#endif
#endif // wxUSE_TOOLTIPS
if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
return;