No changes, just remove unneeded variable initialziation in wxAUI.
Initialize the variables to the correct values when defining them instead of initializing them as 0 first and then assigning them the real value. Closes #14652. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c3f641cb5e
commit
b576c83a30
@ -527,10 +527,8 @@ void wxAuiTabContainer::Render(wxDC* raw_dc, wxWindow* wnd)
|
||||
int left_buttons_width = 0;
|
||||
int right_buttons_width = 0;
|
||||
|
||||
int offset = 0;
|
||||
|
||||
// draw the buttons on the right side
|
||||
offset = m_rect.x + m_rect.width;
|
||||
int offset = m_rect.x + m_rect.width;
|
||||
for (i = 0; i < button_count; ++i)
|
||||
{
|
||||
wxAuiTabContainerButton& button = m_buttons.Item(button_count - i - 1);
|
||||
@ -743,10 +741,8 @@ bool wxAuiTabContainer::IsTabVisible(int tabPage, int tabOffset, wxDC* dc, wxWin
|
||||
int left_buttons_width = 0;
|
||||
int right_buttons_width = 0;
|
||||
|
||||
int offset = 0;
|
||||
|
||||
// calculate size of the buttons on the right side
|
||||
offset = m_rect.x + m_rect.width;
|
||||
int offset = m_rect.x + m_rect.width;
|
||||
for (i = 0; i < button_count; ++i)
|
||||
{
|
||||
wxAuiTabContainerButton& button = m_buttons.Item(button_count - i - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user