summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbafield.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbafield.cxx')
-rw-r--r--sw/source/ui/vba/vbafield.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx
index 5b9f8802ecbd..14d5e5769a57 100644
--- a/sw/source/ui/vba/vbafield.cxx
+++ b/sw/source/ui/vba/vbafield.cxx
@@ -60,12 +60,10 @@ SwVbaField::getServiceImplName()
uno::Sequence<OUString>
SwVbaField::getServiceNames()
{
- static uno::Sequence< OUString > aServiceNames;
- if ( aServiceNames.getLength() == 0 )
+ static uno::Sequence< OUString > const aServiceNames
{
- aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = "ooo.vba.word.Field";
- }
+ "ooo.vba.word.Field"
+ };
return aServiceNames;
}
@@ -518,12 +516,10 @@ SwVbaFields::getElementType()
uno::Sequence<OUString>
SwVbaFields::getServiceNames()
{
- static uno::Sequence< OUString > aServiceNames;
- if ( aServiceNames.getLength() == 0 )
+ static uno::Sequence< OUString > const aServiceNames
{
- aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = "ooo.vba.word.Fields";
- }
+ "ooo.vba.word.Fields"
+ };
return aServiceNames;
}