summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbadocument.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbadocument.cxx')
-rw-r--r--sw/source/ui/vba/vbadocument.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx
index 557b5bb9ca1c..1fd1b3253b90 100644
--- a/sw/source/ui/vba/vbadocument.cxx
+++ b/sw/source/ui/vba/vbadocument.cxx
@@ -609,12 +609,10 @@ SwVbaDocumentOutgoingConnectionPoint::Unadvise( sal_uInt32 Cookie )
uno::Sequence< OUString >
SwVbaDocument::getServiceNames()
{
- static uno::Sequence< OUString > aServiceNames;
- if ( aServiceNames.getLength() == 0 )
+ static uno::Sequence< OUString > const aServiceNames
{
- aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = "ooo.vba.word.Document";
- }
+ "ooo.vba.word.Document"
+ };
return aServiceNames;
}