summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbaheaderfooter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbaheaderfooter.cxx')
-rw-r--r--sw/source/ui/vba/vbaheaderfooter.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/ui/vba/vbaheaderfooter.cxx b/sw/source/ui/vba/vbaheaderfooter.cxx
index 21bd2debe849..e5feadede78f 100644
--- a/sw/source/ui/vba/vbaheaderfooter.cxx
+++ b/sw/source/ui/vba/vbaheaderfooter.cxx
@@ -92,12 +92,10 @@ SwVbaHeaderFooter::getServiceImplName()
uno::Sequence< OUString >
SwVbaHeaderFooter::getServiceNames()
{
- static uno::Sequence< OUString > aServiceNames;
- if ( aServiceNames.getLength() == 0 )
+ static uno::Sequence< OUString > const aServiceNames
{
- aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = "ooo.vba.word.Pane";
- }
+ "ooo.vba.word.Pane"
+ };
return aServiceNames;
}