diff options
Diffstat (limited to 'sc/source/ui/vba/vbatitle.hxx')
-rw-r--r-- | sc/source/ui/vba/vbatitle.hxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sc/source/ui/vba/vbatitle.hxx b/sc/source/ui/vba/vbatitle.hxx index 5c3114d53670..21fe9fba1079 100644 --- a/sc/source/ui/vba/vbatitle.hxx +++ b/sc/source/ui/vba/vbatitle.hxx @@ -133,12 +133,7 @@ public: } css::uno::Sequence< OUString > getServiceNames() override { - static css::uno::Sequence< OUString > aServiceNames; - if ( !aServiceNames.hasElements() ) - { - aServiceNames.realloc( 1 ); - aServiceNames[ 0 ] = "ooo.vba.excel.XTitle"; - } + static const css::uno::Sequence< OUString > aServiceNames{ "ooo.vba.excel.XTitle" }; return aServiceNames; } }; |