suppress (harmless) warnings about unused variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -464,7 +464,7 @@ void wxAuiDefaultTabArt::DrawTab(wxDC& dc,
|
||||
{
|
||||
wxCoord normal_textx, normal_texty;
|
||||
wxCoord selected_textx, selected_texty;
|
||||
wxCoord textx, texty;
|
||||
wxCoord texty;
|
||||
|
||||
// if the caption is empty, measure some temporary text
|
||||
wxString caption = page.caption;
|
||||
@@ -500,13 +500,11 @@ void wxAuiDefaultTabArt::DrawTab(wxDC& dc,
|
||||
if (page.active)
|
||||
{
|
||||
dc.SetFont(m_selected_font);
|
||||
textx = selected_textx;
|
||||
texty = selected_texty;
|
||||
}
|
||||
else
|
||||
{
|
||||
dc.SetFont(m_normal_font);
|
||||
textx = normal_textx;
|
||||
texty = normal_texty;
|
||||
}
|
||||
|
||||
@@ -1963,11 +1961,9 @@ void wxAuiTabContainer::Render(wxDC* raw_dc, wxWindow* wnd)
|
||||
wxAuiTabContainerButton& tab_button = m_tab_close_buttons.Item(i);
|
||||
|
||||
// determine if a close button is on this tab
|
||||
bool close_button = false;
|
||||
if ((m_flags & wxAUI_NB_CLOSE_ON_ALL_TABS) != 0 ||
|
||||
((m_flags & wxAUI_NB_CLOSE_ON_ACTIVE_TAB) != 0 && page.active))
|
||||
{
|
||||
close_button = true;
|
||||
if (tab_button.cur_state == wxAUI_BUTTON_STATE_HIDDEN)
|
||||
{
|
||||
tab_button.id = wxAUI_BUTTON_CLOSE;
|
||||
@@ -2022,14 +2018,6 @@ void wxAuiTabContainer::Render(wxDC* raw_dc, wxWindow* wnd)
|
||||
|
||||
wxAuiTabContainerButton& tab_button = m_tab_close_buttons.Item(active);
|
||||
|
||||
// determine if a close button is on this tab
|
||||
bool close_button = false;
|
||||
if ((m_flags & wxAUI_NB_CLOSE_ON_ALL_TABS) != 0 ||
|
||||
((m_flags & wxAUI_NB_CLOSE_ON_ACTIVE_TAB) != 0 && page.active))
|
||||
{
|
||||
close_button = true;
|
||||
}
|
||||
|
||||
rect.x = active_offset;
|
||||
m_art->DrawTab(dc,
|
||||
wnd,
|
||||
|
Reference in New Issue
Block a user