diff options
Diffstat (limited to 'include/vbahelper')
-rw-r--r-- | include/vbahelper/vbahelperinterface.hxx | 7 |
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; \ } |