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