diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-30 10:25:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:19 +0100 |
commit | 0d7cbdbeac23b6a04b4b7b6e8fd39f2a99da0f41 (patch) | |
tree | c74fa047782a141306fcead918a486933fdfc7e1 /accessibility/source | |
parent | 8f256819b14044afce7e8cf44fbecbe1cb8cb4cf (diff) |
just return a vector rather than pass one in by ref to be cleared
Diffstat (limited to 'accessibility/source')
-rw-r--r-- | accessibility/source/standard/vclxaccessibleradiobutton.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/accessibility/source/standard/vclxaccessibleradiobutton.cxx b/accessibility/source/standard/vclxaccessibleradiobutton.cxx index 467bf5bd7d01..c821700a0a65 100644 --- a/accessibility/source/standard/vclxaccessibleradiobutton.cxx +++ b/accessibility/source/standard/vclxaccessibleradiobutton.cxx @@ -102,9 +102,8 @@ void VCLXAccessibleRadioButton::FillAccessibleRelationSet( utl::AccessibleRelati RadioButton* pRadioButton = dynamic_cast< RadioButton* >( GetWindow() ); if ( pRadioButton ) { - ::std::vector< RadioButton* > aGroup; - pRadioButton->GetRadioButtonGroup( aGroup, true ); - if ( !aGroup.empty() ) + ::std::vector< RadioButton* > aGroup(pRadioButton->GetRadioButtonGroup(true)); + if (!aGroup.empty()) { sal_Int32 i = 0; Sequence< Reference< XInterface > > aSequence( static_cast< sal_Int32 >( aGroup.size() ) ); |