From 28239c40430ec4e613d9d936614c5c3853c332c4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 2 Mar 2019 08:28:03 +0200 Subject: simplify UNO getTypes methods Change-Id: Ia8b07edec54527fb4904536fabb03a18e8452550 Reviewed-on: https://gerrit.libreoffice.org/68659 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basctl/source/basicide/unomodel.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx index b85090a04833..5bfe9e1c5b91 100644 --- a/basctl/source/basicide/unomodel.cxx +++ b/basctl/source/basicide/unomodel.cxx @@ -21,6 +21,7 @@ #include "basdoc.hxx" #include #include +#include #include #include @@ -70,13 +71,9 @@ void SAL_CALL SIDEModel::release() throw() uno::Sequence< uno::Type > SAL_CALL SIDEModel::getTypes( ) { - uno::Sequence< uno::Type > aTypes = SfxBaseModel::getTypes(); - sal_Int32 nLen = aTypes.getLength(); - aTypes.realloc(nLen + 1); - uno::Type* pTypes = aTypes.getArray(); - pTypes[nLen++] = cppu::UnoType::get(); - - return aTypes; + return comphelper::concatSequences( + SfxBaseModel::getTypes(), + uno::Sequence { cppu::UnoType::get() }); } OUString SIDEModel::getImplementationName() -- cgit