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:
Vadim Zeitlin 2012-09-13 17:15:48 +00:00
parent c3f641cb5e
commit b576c83a30

View File

@ -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);