diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/config/cache/configflush.cxx | 3 | ||||
-rw-r--r-- | filter/source/config/cache/contenthandlerfactory.cxx | 6 | ||||
-rw-r--r-- | filter/source/config/cache/filterfactory.cxx | 3 | ||||
-rw-r--r-- | filter/source/config/cache/frameloaderfactory.cxx | 6 | ||||
-rw-r--r-- | filter/source/config/cache/typedetection.cxx | 3 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfilterdialogcomponent.cxx | 3 |
6 files changed, 8 insertions, 16 deletions
diff --git a/filter/source/config/cache/configflush.cxx b/filter/source/config/cache/configflush.cxx index 0f7d6ccefdeb..1f625367487e 100644 --- a/filter/source/config/cache/configflush.cxx +++ b/filter/source/config/cache/configflush.cxx @@ -117,8 +117,7 @@ OUString ConfigFlush::impl_getImplementationName() css::uno::Sequence< OUString > ConfigFlush::impl_getSupportedServiceNames() { - css::uno::Sequence< OUString > lServiceNames(1); - lServiceNames[0] = "com.sun.star.document.FilterConfigRefresh"; + css::uno::Sequence< OUString > lServiceNames { "com.sun.star.document.FilterConfigRefresh" }; return lServiceNames; } 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; } diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx index 6c37d82c6c6b..4577415798c0 100644 --- a/filter/source/config/cache/filterfactory.cxx +++ b/filter/source/config/cache/filterfactory.cxx @@ -578,8 +578,7 @@ OUString FilterFactory::impl_getImplementationName() css::uno::Sequence< OUString > FilterFactory::impl_getSupportedServiceNames() { - css::uno::Sequence< OUString > lServiceNames(1); - lServiceNames[0] = "com.sun.star.document.FilterFactory"; + css::uno::Sequence< OUString > lServiceNames { "com.sun.star.document.FilterFactory" }; return lServiceNames; } diff --git a/filter/source/config/cache/frameloaderfactory.cxx b/filter/source/config/cache/frameloaderfactory.cxx index 87061729742e..d2bcf6fd0d40 100644 --- a/filter/source/config/cache/frameloaderfactory.cxx +++ b/filter/source/config/cache/frameloaderfactory.cxx @@ -80,8 +80,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL FrameLoaderFactory::createI { _FILTER_CONFIG_LOG_("FrameLoaderFactory::createInstanceWithArguments() ... simulate old type search functionality!\n"); - css::uno::Sequence< OUString > lTypes(1); - lTypes[0] = sLoader; + css::uno::Sequence< OUString > lTypes { sLoader }; css::uno::Sequence< css::beans::NamedValue > lQuery { { PROPNAME_TYPES, css::uno::makeAny(lTypes) } }; @@ -150,8 +149,7 @@ OUString FrameLoaderFactory::impl_getImplementationName() css::uno::Sequence< OUString > FrameLoaderFactory::impl_getSupportedServiceNames() { - css::uno::Sequence< OUString > lServiceNames(1); - lServiceNames[0] = "com.sun.star.frame.FrameLoaderFactory"; + css::uno::Sequence< OUString > lServiceNames { "com.sun.star.frame.FrameLoaderFactory" }; return lServiceNames; } diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx index b25f1be2af87..1e81e61c7a61 100644 --- a/filter/source/config/cache/typedetection.cxx +++ b/filter/source/config/cache/typedetection.cxx @@ -1232,8 +1232,7 @@ OUString TypeDetection::impl_getImplementationName() css::uno::Sequence< OUString > TypeDetection::impl_getSupportedServiceNames() { - css::uno::Sequence< OUString > lServiceNames(1); - lServiceNames[0] = "com.sun.star.document.TypeDetection"; + css::uno::Sequence< OUString > lServiceNames { "com.sun.star.document.TypeDetection" }; return lServiceNames; } diff --git a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx index 89cd8385cd8e..d1dab361f242 100644 --- a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx +++ b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx @@ -196,8 +196,7 @@ OUString XMLFilterDialogComponent_getImplementationName() throw ( RuntimeExcepti Sequence< OUString > SAL_CALL XMLFilterDialogComponent_getSupportedServiceNames() throw ( RuntimeException ) { - Sequence< OUString > aSupported(1); - aSupported[0] = "com.sun.star.ui.dialogs.XSLTFilterDialog"; + Sequence< OUString > aSupported { "com.sun.star.ui.dialogs.XSLTFilterDialog" }; return aSupported; } |