summaryrefslogtreecommitdiff
path: root/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-09-03 20:24:49 +0300
committerArkadiy Illarionov <qarkai@gmail.com>2019-09-05 14:53:10 +0200
commit396869e0e71bd33f5d962779abf72f35d01245e5 (patch)
treecc123c6864ff0db9875fe7e634de157eb34a9364 /accessibility/source/standard/vclxaccessibledropdownlistbox.cxx
parent111cf7ee0b26a831577c7c03089f9de159aef16d (diff)
Simplify Sequence iterations in accessibility
Use range-based loops, STL and comphelper functions. Change-Id: I600f6eeffd606859c24cdce8faeaead29abfb843 Reviewed-on: https://gerrit.libreoffice.org/78573 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'accessibility/source/standard/vclxaccessibledropdownlistbox.cxx')
-rw-r--r--accessibility/source/standard/vclxaccessibledropdownlistbox.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx b/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx
index 11da9de8c623..4422ed753417 100644
--- a/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx
+++ b/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx
@@ -63,11 +63,8 @@ OUString VCLXAccessibleDropDownListBox::getImplementationName()
Sequence< OUString > VCLXAccessibleDropDownListBox::getSupportedServiceNames()
{
- Sequence< OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames();
- sal_Int32 nLength = aNames.getLength();
- aNames.realloc( nLength + 1 );
- aNames[nLength] = "com.sun.star.accessibility.AccessibleDropDownListBox";
- return aNames;
+ return comphelper::concatSequences(VCLXAccessibleBox::getSupportedServiceNames(),
+ Sequence<OUString>{"com.sun.star.accessibility.AccessibleDropDownListBox"});
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */