diff options
Diffstat (limited to 'vbahelper/source/msforms/vbaspinbutton.cxx')
-rw-r--r-- | vbahelper/source/msforms/vbaspinbutton.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vbahelper/source/msforms/vbaspinbutton.cxx b/vbahelper/source/msforms/vbaspinbutton.cxx index 45279ed94800..1da95fcedc55 100644 --- a/vbahelper/source/msforms/vbaspinbutton.cxx +++ b/vbahelper/source/msforms/vbaspinbutton.cxx @@ -77,12 +77,10 @@ ScVbaSpinButton::getServiceImplName() uno::Sequence< OUString > ScVbaSpinButton::getServiceNames() { - static uno::Sequence< OUString > aServiceNames; - if ( aServiceNames.getLength() == 0 ) + static uno::Sequence< OUString > const aServiceNames { - aServiceNames.realloc( 1 ); - aServiceNames[ 0 ] = "ooo.vba.msforms.Frame"; - } + "ooo.vba.msforms.Frame" + }; return aServiceNames; } |