summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-02 08:28:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-04 08:52:39 +0100
commit28239c40430ec4e613d9d936614c5c3853c332c4 (patch)
tree0fa6bc36c05f8f42a0799b884ed38eb3e569ff90 /connectivity
parent85b7e7fdd7f283a3084e2db0dd8e71a48fac228d (diff)
simplify UNO getTypes methods
Change-Id: Ia8b07edec54527fb4904536fabb03a18e8452550 Reviewed-on: https://gerrit.libreoffice.org/68659 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/paramwrapper.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/commontools/paramwrapper.cxx b/connectivity/source/commontools/paramwrapper.cxx
index 08a89a539a32..16493fddfe66 100644
--- a/connectivity/source/commontools/paramwrapper.cxx
+++ b/connectivity/source/commontools/paramwrapper.cxx
@@ -115,13 +115,13 @@ namespace param
Sequence< Type > SAL_CALL ParameterWrapper::getTypes( )
{
- Sequence< Type > aTypes( 5 );
- aTypes[ 0 ] = cppu::UnoType<XWeak>::get();
- aTypes[ 1 ] = cppu::UnoType<XTypeProvider>::get();
- aTypes[ 2 ] = cppu::UnoType<XPropertySet>::get();
- aTypes[ 3 ] = cppu::UnoType<XFastPropertySet>::get();
- aTypes[ 4 ] = cppu::UnoType<XMultiPropertySet>::get();
- return aTypes;
+ return Sequence< Type > {
+ cppu::UnoType<XWeak>::get(),
+ cppu::UnoType<XTypeProvider>::get(),
+ cppu::UnoType<XPropertySet>::get(),
+ cppu::UnoType<XFastPropertySet>::get(),
+ cppu::UnoType<XMultiPropertySet>::get()
+ };
}