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
int left_buttons_width = 0;
int right_buttons_width = 0;
int left_buttons_width = 0;
int right_buttons_width = 0;
// draw the buttons on the right side
// 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);
for (i = 0; i < button_count; ++i)
{
wxAuiTabContainerButton& button = m_buttons.Item(button_count - i - 1);
int left_buttons_width = 0;
int right_buttons_width = 0;
int left_buttons_width = 0;
int right_buttons_width = 0;
// calculate size of the buttons on the right side
// 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);
for (i = 0; i < button_count; ++i)
{
wxAuiTabContainerButton& button = m_buttons.Item(button_count - i - 1);