summaryrefslogtreecommitdiff
path: root/chart2/source
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 /chart2/source
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 'chart2/source')
-rw-r--r--chart2/source/model/main/ChartModel.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index 1940b16f04c3..c05047bce6af 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -631,15 +631,9 @@ uno::Sequence< uno::Type > SAL_CALL ChartModel::getTypes()
if( (m_xOldModelAgg->queryAggregation( cppu::UnoType<decltype(xAggTypeProvider)>::get()) >>= xAggTypeProvider)
&& xAggTypeProvider.is())
{
- uno::Sequence< uno::Type > aOwnTypes( impl::ChartModel_Base::getTypes());
- uno::Sequence< uno::Type > aAggTypes( xAggTypeProvider->getTypes());
- uno::Sequence< uno::Type > aResult( aOwnTypes.getLength() + aAggTypes.getLength());
- sal_Int32 i=0;
- for( ;i<aOwnTypes.getLength(); ++i )
- aResult[i] = aOwnTypes[i];
- for( sal_Int32 j=0; i<aResult.getLength(); ++j, ++i)
- aResult[i] = aAggTypes[j];
- return aResult;
+ return comphelper::concatSequences(
+ impl::ChartModel_Base::getTypes(),
+ xAggTypeProvider->getTypes());
}
return impl::ChartModel_Base::getTypes();