/////////////////////////////////////////////////////////////////////////////
-// Name: univ/radiobox.cpp
+// Name: src/univ/radiobox.cpp
// Purpose: wxRadioBox implementation
// Author: Vadim Zeitlin
// Modified by:
return false;
// also enable/disable the buttons
- size_t count = m_buttons.GetCount();
+ const size_t count = m_buttons.GetCount();
for ( size_t n = 0; n < count; n++ )
{
Enable(n, enable);
return false;
// also show/hide the buttons
- size_t count = m_buttons.GetCount();
+ const size_t count = m_buttons.GetCount();
for ( size_t n = 0; n < count; n++ )
{
Show(n, show);
wxControl::DoSetToolTip(tooltip);
// Also set them for all Radio Buttons
- size_t count = m_buttons.GetCount();
+ const size_t count = m_buttons.GetCount();
for ( size_t n = 0; n < count; n++ )
{
if (tooltip)
wxSize wxRadioBox::GetMaxButtonSize() const
{
- int widthMax, heightMax, width, height;
+ int widthMax, heightMax, width = 0, height = 0;
widthMax = heightMax = 0;
- int count = GetCount();
+ const int count = GetCount();
for ( int n = 0; n < count; n++ )
{
m_buttons[n]->GetBestSize(&width, &height);
int x = x0,
y = y0;
- int count = GetCount();
- for ( int n = 0; n < count; n++ )
+ const size_t count = GetCount();
+ for ( size_t n = 0; n < count; n++ )
{
m_buttons[n]->SetSize(x, y, sizeBtn.x, sizeBtn.y);
}
#endif // wxUSE_RADIOBOX
-