diff options
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r-- | vcl/source/control/button.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index cb0cb8b3d68e..025c80f26cb1 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2201,9 +2201,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; } } @@ -2220,9 +2219,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); |