summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 08:43:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 10:13:08 +0000
commit8e234c5b7d5bae66c544e581bee5770f3f83dd81 (patch)
tree7d78f03ce2231de4f727d1135449aeb8cba74e99 /filter
parent3bdd176731c351638f541a37b94094124f3c9f52 (diff)
use initialiser syntax for Sequence<OUString>
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/config/cache/configflush.cxx3
-rw-r--r--filter/source/config/cache/contenthandlerfactory.cxx6
-rw-r--r--filter/source/config/cache/filterfactory.cxx3
-rw-r--r--filter/source/config/cache/frameloaderfactory.cxx6
-rw-r--r--filter/source/config/cache/typedetection.cxx3
-rw-r--r--filter/source/xsltdialog/xmlfilterdialogcomponent.cxx3
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;
}