diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-02 08:28:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-04 08:52:39 +0100 |
commit | 28239c40430ec4e613d9d936614c5c3853c332c4 (patch) | |
tree | 0fa6bc36c05f8f42a0799b884ed38eb3e569ff90 /dbaccess | |
parent | 85b7e7fdd7f283a3084e2db0dd8e71a48fac228d (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 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 42e7e18e3015..f88da7d73e38 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -185,13 +185,9 @@ Any SAL_CALL SbaXGridControl::queryInterface(const Type& _rType) Sequence< Type > SAL_CALL SbaXGridControl::getTypes( ) { - Sequence< Type > aTypes = FmXGridControl::getTypes(); - - sal_Int32 nTypes = aTypes.getLength(); - aTypes.realloc(nTypes + 1); - aTypes[nTypes] = cppu::UnoType<css::frame::XDispatch>::get(); - - return aTypes; + return comphelper::concatSequences( + FmXGridControl::getTypes(), + Sequence { cppu::UnoType<css::frame::XDispatch>::get() }); } Sequence< sal_Int8 > SAL_CALL SbaXGridControl::getImplementationId( ) @@ -521,12 +517,9 @@ const Sequence< sal_Int8 > & SbaXGridPeer::getUnoTunnelId() Sequence< Type > SAL_CALL SbaXGridPeer::getTypes() { - Sequence< Type > aTypes = FmXGridPeer::getTypes(); - sal_Int32 nOldLen = aTypes.getLength(); - aTypes.realloc(nOldLen + 1); - aTypes.getArray()[nOldLen] = cppu::UnoType<css::frame::XDispatch>::get(); - - return aTypes; + return comphelper::concatSequences( + FmXGridPeer::getTypes(), + Sequence { cppu::UnoType<css::frame::XDispatch>::get() }); } // return implementation specific data |