Skip to content

Commit

Permalink
No changes, just avoid unused variable in wxUSE_TOOLTIPS==0 build.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vadz committed Dec 28, 2012
1 parent 3b4b952 commit 5160f29
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/aui/auibook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -1247,8 +1246,8 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
}
else
UnsetToolTip();
#endif
#endif // wxUSE_TOOLTIPS

if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
return;

Expand Down

0 comments on commit 5160f29

Please sign in to comment.