summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 47dc44a22564..2feddafde72a 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2202,9 +2202,8 @@ void RadioButton::group(RadioButton &rOther)
}
//make all members of the group share the same button group
- for (auto aI = m_xGroup->begin(), aEnd = m_xGroup->end(); aI != aEnd; ++aI)
+ for (VclPtr<RadioButton> const & pButton : *m_xGroup)
{
- RadioButton* pButton = *aI;
pButton->m_xGroup = m_xGroup;
}
}
@@ -2221,9 +2220,8 @@ std::vector< VclPtr<RadioButton> > RadioButton::GetRadioButtonGroup(bool bInclud
if (bIncludeThis)
return *m_xGroup;
std::vector< VclPtr<RadioButton> > aGroup;
- for (auto aI = m_xGroup->begin(), aEnd = m_xGroup->end(); aI != aEnd; ++aI)
+ for (VclPtr<RadioButton> const & pRadioButton : *m_xGroup)
{
- RadioButton *pRadioButton = *aI;
if (pRadioButton == this)
continue;
aGroup.push_back(pRadioButton);