summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbacells.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 13:11:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 13:34:17 +0100
commit0d653000a6c07327d6db1f95be3d21d50d505423 (patch)
tree31c38f67117af9f72664dbba170eb822fc4e1193 /sw/source/ui/vba/vbacells.cxx
parent7f91d6cceeeafb588f545be4c383e312d9e42bf7 (diff)
improve function-local statics in sw
Change-Id: I36b0e9b2819a442f01182f551dbc2bf7d5c878f4 Reviewed-on: https://gerrit.libreoffice.org/63788 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/vba/vbacells.cxx')
-rw-r--r--sw/source/ui/vba/vbacells.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/ui/vba/vbacells.cxx b/sw/source/ui/vba/vbacells.cxx
index cddf9c2fe2c1..6cc969d492e7 100644
--- a/sw/source/ui/vba/vbacells.cxx
+++ b/sw/source/ui/vba/vbacells.cxx
@@ -201,12 +201,10 @@ SwVbaCells::getServiceImplName()
uno::Sequence<OUString>
SwVbaCells::getServiceNames()
{
- static uno::Sequence< OUString > sNames;
- if ( sNames.getLength() == 0 )
+ static uno::Sequence< OUString > const sNames
{
- sNames.realloc( 1 );
- sNames[0] = "ooo.vba.word.Cells";
- }
+ "ooo.vba.word.Cells"
+ };
return sNames;
}