summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-05 16:28:32 +0200
committerNoel Grandin <noel@peralex.com>2014-12-08 14:13:17 +0200
commit2979ff295c9fafdb92cb56cd1f5ddb0a6b56cf20 (patch)
treeb2088ed0b437f8181af5bdce70fd0d7ef27ea8e0 /vbahelper
parenteae0dda3e2eddb55b4e2032136541c15ba87fa09 (diff)
fdo#38835 strip out OUString globals
Change-Id: I1a435214af102461e02217f7d95248dac14e5f1a
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;
}