tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Iffb8512c530b33f87076aec9f85b45219c7d07e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87528
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx
index 5ac5f7f..b9eb032 100644
--- a/extensions/source/propctrlr/formcontroller.cxx
+++ b/extensions/source/propctrlr/formcontroller.cxx
@@ -127,8 +127,7 @@ namespace pcr
Sequence< OUString > FormController::getSupportedServiceNames_static( )
{
Sequence< OUString > aSupported { "com.sun.star.form.PropertyBrowserController" };
return aSupported;
return { "com.sun.star.form.PropertyBrowserController" };
}
@@ -254,8 +253,7 @@ namespace pcr
Sequence< OUString > DialogController::getSupportedServiceNames_static( )
{
Sequence< OUString > aSupported { "com.sun.star.awt.PropertyBrowserController" };
return aSupported;
return { "com.sun.star.awt.PropertyBrowserController" };
}
diff --git a/remotebridges/source/unourl_resolver/unourl_resolver.cxx b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
index 4339b30..d4eea66 100644
--- a/remotebridges/source/unourl_resolver/unourl_resolver.cxx
+++ b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
@@ -46,8 +46,7 @@ namespace unourl_resolver
static Sequence< OUString > resolver_getSupportedServiceNames()
{
Sequence< OUString > seqNames { "com.sun.star.bridge.UnoUrlResolver" };
return seqNames;
return { "com.sun.star.bridge.UnoUrlResolver" };
}
static OUString resolver_getImplementationName()
diff --git a/svx/source/unodraw/unobtabl.cxx b/svx/source/unodraw/unobtabl.cxx
index f943699..4d9c5de 100644
--- a/svx/source/unodraw/unobtabl.cxx
+++ b/svx/source/unodraw/unobtabl.cxx
@@ -84,8 +84,7 @@ OUString SAL_CALL SvxUnoBitmapTable::getImplementationName()
uno::Sequence< OUString > SAL_CALL SvxUnoBitmapTable::getSupportedServiceNames( )
{
uno::Sequence<OUString> aSNS { "com.sun.star.drawing.BitmapTable" };
return aSNS;
return { "com.sun.star.drawing.BitmapTable" };
}
NameOrIndex* SvxUnoBitmapTable::createItem() const
diff --git a/svx/source/unodraw/unodtabl.cxx b/svx/source/unodraw/unodtabl.cxx
index f285ac3..9cf86c2 100644
--- a/svx/source/unodraw/unodtabl.cxx
+++ b/svx/source/unodraw/unodtabl.cxx
@@ -64,8 +64,7 @@ OUString SAL_CALL SvxUnoDashTable::getImplementationName()
uno::Sequence< OUString > SAL_CALL SvxUnoDashTable::getSupportedServiceNames( )
{
uno::Sequence<OUString> aSNS { "com.sun.star.drawing.DashTable" };
return aSNS;
return { "com.sun.star.drawing.DashTable" };
}
NameOrIndex* SvxUnoDashTable::createItem() const
diff --git a/svx/source/unodraw/unogtabl.cxx b/svx/source/unodraw/unogtabl.cxx
index 4b3842c..d7b66ef 100644
--- a/svx/source/unodraw/unogtabl.cxx
+++ b/svx/source/unodraw/unogtabl.cxx
@@ -63,8 +63,7 @@ OUString SAL_CALL SvxUnoGradientTable::getImplementationName()
uno::Sequence< OUString > SAL_CALL SvxUnoGradientTable::getSupportedServiceNames( )
{
uno::Sequence<OUString> aSNS { "com.sun.star.drawing.GradientTable" };
return aSNS;
return { "com.sun.star.drawing.GradientTable" };
}
diff --git a/svx/source/unodraw/unohtabl.cxx b/svx/source/unodraw/unohtabl.cxx
index ec114ba..9adb450 100644
--- a/svx/source/unodraw/unohtabl.cxx
+++ b/svx/source/unodraw/unohtabl.cxx
@@ -63,8 +63,7 @@ OUString SAL_CALL SvxUnoHatchTable::getImplementationName()
uno::Sequence< OUString > SAL_CALL SvxUnoHatchTable::getSupportedServiceNames( )
{
uno::Sequence<OUString> aSNS { "com.sun.star.drawing.HatchTable" };
return aSNS;
return { "com.sun.star.drawing.HatchTable" };
}
NameOrIndex* SvxUnoHatchTable::createItem() const
diff --git a/svx/source/unodraw/unottabl.cxx b/svx/source/unodraw/unottabl.cxx
index 9653f36..8a9e484 100644
--- a/svx/source/unodraw/unottabl.cxx
+++ b/svx/source/unodraw/unottabl.cxx
@@ -63,8 +63,7 @@ OUString SAL_CALL SvxUnoTransGradientTable::getImplementationName()
uno::Sequence< OUString > SAL_CALL SvxUnoTransGradientTable::getSupportedServiceNames( )
{
uno::Sequence<OUString> aSNS { "com.sun.star.drawing.TransparencyGradientTable" };
return aSNS;
return { "com.sun.star.drawing.TransparencyGradientTable" };
}
NameOrIndex* SvxUnoTransGradientTable::createItem() const
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index df9f340..aca43c1 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -2464,8 +2464,7 @@ OUString _getImplementationName() {
uno::Sequence< OUString > _getSupportedServiceNames()
{
uno::Sequence< OUString > s { "com.sun.star.rdf.Repository" };
return s;
return { "com.sun.star.rdf.Repository" };
}
uno::Reference< uno::XInterface > _create(