summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbacommandbarcontrols.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
index cded9f7c309e..830a922c2d09 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
@@ -236,12 +236,10 @@ ScVbaCommandBarControls::getServiceImplName()
uno::Sequence<OUString>
ScVbaCommandBarControls::getServiceNames()
{
- static uno::Sequence< OUString > aServiceNames;
- if ( aServiceNames.getLength() == 0 )
+ static uno::Sequence< OUString > const aServiceNames
{
- aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = "ooo.vba.CommandBarControls";
- }
+ "ooo.vba.CommandBarControls"
+ };
return aServiceNames;
}
@@ -306,12 +304,10 @@ OUString VbaDummyCommandBarControls::getServiceImplName()
uno::Sequence<OUString> VbaDummyCommandBarControls::getServiceNames()
{
- static uno::Sequence< OUString > aServiceNames;
- if ( aServiceNames.getLength() == 0 )
+ static uno::Sequence< OUString > const aServiceNames
{
- aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = "ooo.vba.CommandBarControls";
- }
+ "ooo.vba.CommandBarControls"
+ };
return aServiceNames;
}