diff options
Diffstat (limited to 'filter/source/config/cache/contenthandlerfactory.cxx')
-rw-r--r-- | filter/source/config/cache/contenthandlerfactory.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/source/config/cache/contenthandlerfactory.cxx b/filter/source/config/cache/contenthandlerfactory.cxx index 5cc7c27cdfdd..38afa0689bcc 100644 --- a/filter/source/config/cache/contenthandlerfactory.cxx +++ b/filter/source/config/cache/contenthandlerfactory.cxx @@ -83,8 +83,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL ContentHandlerFactory::crea { _FILTER_CONFIG_LOG_("ContentHandlerFactory::createInstanceWithArguments() ... simulate old type search functionality!\n"); - css::uno::Sequence< OUString > lTypes(1); - lTypes[0] = sHandler; + css::uno::Sequence< OUString > lTypes { sHandler }; css::uno::Sequence< css::beans::NamedValue > lQuery { { PROPNAME_TYPES, css::uno::makeAny(lTypes) } }; @@ -153,8 +152,7 @@ OUString ContentHandlerFactory::impl_getImplementationName() css::uno::Sequence< OUString > ContentHandlerFactory::impl_getSupportedServiceNames() { - css::uno::Sequence< OUString > lServiceNames(1); - lServiceNames[0] = "com.sun.star.frame.ContentHandlerFactory"; + css::uno::Sequence< OUString > lServiceNames { "com.sun.star.frame.ContentHandlerFactory" }; return lServiceNames; } |