summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/unomodel.cxx11
1 files changed, 4 insertions, 7 deletions
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 <iderdll.hxx>
#include <com/sun/star/io/IOException.hpp>
+#include <comphelper/sequence.hxx>
#include <sfx2/objsh.hxx>
#include <vcl/svapp.hxx>
@@ -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<XServiceInfo>::get();
-
- return aTypes;
+ return comphelper::concatSequences(
+ SfxBaseModel::getTypes(),
+ uno::Sequence { cppu::UnoType<XServiceInfo>::get() });
}
OUString SIDEModel::getImplementationName()