summaryrefslogtreecommitdiff
path: root/include/vbahelper
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-28 15:57:38 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-28 20:09:19 +0200
commitc131f32fcfff1208adc38536839bc5168fcb7487 (patch)
tree15281689e85827f04af03349032f91196c3e7c29 /include/vbahelper
parenta93329244a7d24b8a89d8f287b6123e56d13786d (diff)
Prepare for removal of non-const operator[] from Sequence in include
Change-Id: I85ca453f3add5ac5b59dc6f1ccb2cdb55f0a463c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124333 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/vbahelper')
-rw-r--r--include/vbahelper/vbahelperinterface.hxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/vbahelper/vbahelperinterface.hxx b/include/vbahelper/vbahelperinterface.hxx
index 0bbf18992ec3..c7fb615b1f5a 100644
--- a/include/vbahelper/vbahelperinterface.hxx
+++ b/include/vbahelper/vbahelperinterface.hxx
@@ -132,12 +132,7 @@ OUString classname::getServiceImplName() \
} \
css::uno::Sequence< OUString > classname::getServiceNames() \
{ \
- static css::uno::Sequence< OUString > saServiceNames; \
- if( saServiceNames.getLength() == 0 ) \
- { \
- saServiceNames.realloc( 1 ); \
- saServiceNames[ 0 ] = servicename; \
- } \
+ static const css::uno::Sequence< OUString > saServiceNames { servicename }; \
return saServiceNames; \
}