summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbaglobalbase.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vbahelper/source/vbahelper/vbaglobalbase.cxx b/vbahelper/source/vbahelper/vbaglobalbase.cxx
index 4bfdb4ee8f00..53027d2c44ce 100644
--- a/vbahelper/source/vbahelper/vbaglobalbase.cxx
+++ b/vbahelper/source/vbahelper/vbaglobalbase.cxx
@@ -150,11 +150,8 @@ VbaGlobalsBase::createInstanceWithArguments( const OUString& aServiceSpecifier,
uno::Sequence< OUString > SAL_CALL
VbaGlobalsBase::getAvailableServiceNames( ) throw (uno::RuntimeException, std::exception)
{
- static const OUString names[] = {
- // common
- OUString("ooo.vba.msforms.UserForm"),
- };
- static uno::Sequence< OUString > serviceNames( names, sizeof( names )/ sizeof( names[0] ) );
+ uno::Sequence< OUString > serviceNames(1);
+ serviceNames[0] = "ooo.vba.msforms.UserForm";
return serviceNames;
}