summaryrefslogtreecommitdiff
path: root/vbahelper/source/msforms/vbabutton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/msforms/vbabutton.cxx')
-rw-r--r--vbahelper/source/msforms/vbabutton.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/vbahelper/source/msforms/vbabutton.cxx b/vbahelper/source/msforms/vbabutton.cxx
index 0951731d2c64..7c7e98143432 100644
--- a/vbahelper/source/msforms/vbabutton.cxx
+++ b/vbahelper/source/msforms/vbabutton.cxx
@@ -118,12 +118,10 @@ VbaButton::getServiceImplName()
uno::Sequence< OUString >
VbaButton::getServiceNames()
{
- static uno::Sequence< OUString > aServiceNames;
- if ( aServiceNames.getLength() == 0 )
+ static uno::Sequence< OUString > const aServiceNames
{
- aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = "ooo.vba.msforms.Button";
- }
+ "ooo.vba.msforms.Button"
+ };
return aServiceNames;
}